When I click a button, I want to run multiple methods one after another. I want a click button allow the next method in the queue to execute.
A message box does exactly what I want but I hate message boxes.
This is what I’m trying to implement:
private void teststart_Click(object sender, EventArgs e)
{
step1();
//Wait for button to be clicked
step2();
//wait for button to be clicked
step3();
//wait for button to be clicked
}
private void continuebutton_Click(object sender, EventArgs e)
{
//button to be clicked
}
For my particular solution, I started with the solution I posted above. After more google, I found the easy way was to
the only bug i found in this is that i had to click the button twice, so i disabled the button, which i wanted to do anyway, then renabled it later. I’ve read this is bad coding, but I have yet to find an easier way to accomplish this goal.