Advertisement

Results for "Author: apdanan"

ASP_Volume2 #43840
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

ASP_Volume3 #56774
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

C_Volume2 #84902
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

Java_Volume1 #103446
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

2_2002-2004 #130594
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

3_2004-2005 #149137
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

4_2005-2006 #162071
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

5_2007-2008 #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

6_2008-2009 #207107
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

7_2009-2012 #229625
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

Languages
Top Categories
Global Discovery