感谢.net2.0为我们所做的。
Icon icon = Icon.ExtractAssociatedIcon(textBox1.Text);
pictureBox1.Image = icon.ToBitmap();
pictureBox1.Image = icon.ToBitmap();
呵呵,以前要用Api,现在好轻松就取得了。
System.Drawing.Icon Class。哈哈:)
郁闷,我的博客出了BUG。