winform下 PictureBox 显示网络图片

Image pic = new Image.FromStream(WebRequest.Create("http://x.com/x.jpg").GetResponse().GetResponseStream());
picturebox1.Image = pic

对读取错误的处理没有加

原文地址:https://www.cnblogs.com/lxshanye/p/3754408.html