Advertisement
5_2007-2008 Data Structures #184589

remote image loader with threading

this will load remote images to a picturebox ''1. create new project ''2. add 1 textbox '' 1 button '' 1 picturebox ''3 add procedure code Private Sub GetPicture() Dim m1(-1) As Byte Dim dbyte As New System.Net.WebClient Dim memstream As New System.IO.MemoryStream Try m1 = dbyte.DownloadData(Me.TextBox1.Text) memstream.Write(m1, 0, m1.Length) PictureBox1.BackgroundImage = _ Image.FromStream(memstream) Catch 'hehehe hide error :) End Try End Sub ''4. on button click event add.... Private Sub Button1_Click(ByVal sender As _ System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click Dim mthread As New _ System.Threading.Thread(AddressOf GetPicture) mthread.Start() End Sub

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Upload
Original Comments (3)
Recovered from Wayback Machine