A basic C# Problem.
I have two disabled textboxes on my form, and one button. The button is currently like so:
private void start_Click(object sender, EventArgs e)
{
this.two();
this.hold();
this.one()
}
As you can see it calls three other methods that are like so:
- "two" - Makes both the text boxes BackColor, black.
- "one" - Makes just one of the boxes BackColor Black.
- "hold"
- Calls "System.Threading.Thread.Sleep(1000);" to pause the program for a second.
- Changes the backcolour for both the text boxes back to white.
The problem I am encountering is that program seems to skip the first call to two. And just hold the program for a second and change one textbox to black.
Thanks for any help!