Thread t; void ShowWaitImage() { if (WaitForloginPicturebox .InvokeRequired) { this.WaitForloginPicturebox .Invoke(new MethodInvoker(ShowWaitImage)); } else { this.pictureBox2.Visible = true; } } private void button1_Click(object sender, EventArgs e) { t=new Thread(new ThreadStart(ShowWaitImage)); t.Start(); //... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)