How to load image from web asynchron into picturebox in C# and VB.NET

To load image from web asynchron into picturebox in C# and VB.NET you can use the following snippet.

Sample C#

pictureBox1.WaitOnLoad = false;
pictureBox1.LoadAsync(@"https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg");

Sample VB.NET

pictureBox1.WaitOnLoad = False
pictureBox1.LoadAsync("https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg")

Please Share us:
Please rate this snippet

One thought on “How to load image from web asynchron into picturebox in C# and VB.NET

Leave a Reply