I have a button .. under the event handler of it .. i have code like this
button1.backcolor="red";
thread.sleep(100);
button.backcolor="blue" ;
What will be the output .. if there are any mistakes in code correct and tell me output please ..
Cheers
thank you

FroglegPosted Nov 4, 2013, 2:43 AM
button1.BackColor = Color.Red;
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
button1.BackColor = Color.Blue;
button backcolor will equal red, then blue after 1 second