andy_tigger

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
using System.Net;

private void button1_Click(object sender, EventArgs e)
{
HttpWebRequest vHttpWebRequest
= (HttpWebRequest)WebRequest.Create(
@"http://www.baidu.com/favicon.ico");
HttpWebResponse vHttpWebResponse
= (HttpWebResponse)vHttpWebRequest.GetResponse();
Image vFavicon
= Image.FromStream(vHttpWebResponse.GetResponseStream());
pictureBox1.Image
= vFavicon;
vHttpWebResponse.Close();
}
posted on 2010-11-24 19:11  andy_tigger  阅读(347)  评论(0编辑  收藏  举报