atevans Posted October 17, 2003 Posted October 17, 2003 How can I set the image property of a picturebox to the image at a uri? Quote
*Experts* mutant Posted October 17, 2003 *Experts* Posted October 17, 2003 You could download it to a temporary file using System.Net.WebClient class and then use that image. Quote
*Gurus* divil Posted October 17, 2003 *Gurus* Posted October 17, 2003 System.Net.WebClient wc = new System.Net.WebClient(); byte[] data = wc.DownloadData(@"http://www.microsoft.com/homepage/gif/bnr-microsoft.gif"); System.IO.MemoryStream ms = new System.IO.MemoryStream(data); pictureBox1.Image = new Bitmap(ms); Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.