On Jul 9, 2:35 pm, Boki <bokit...@ms21.hinet.netwrote:
Hi All,
When thread returns, that means the thread is closed ?
What is the standard way to kill it ?
threadA= null ;
Thank you for advice!
/* CODE BEGIN */
public partial class Form1 : Form
{
private static Thread thread_Interent;
...
public void Boki_internet_CallbackFunction()
{
{
// code a b c d e g g
Thread.Sleep(1000);
}
}
...
}
/* CODE END */
Best regards,
Boki.
My issue is, my form is running, user needs to type some text in a
textbox, and the thread is downloading data from internet by this
line:
pictureBox1.Image = new System.Drawing.Bitmap(new
System.IO.MemoryStream(new
System.Net.WebClient().DownloadData(picStr)));
if there is no thread, program will be completely block until the
picture was loaded.
so, I only need this thread starting work when I need it to load a
picture.
Could you please advice any idea ?
Thanks a lot!
Best regards,
Boki.