Reputation: 1357
How to make a program wait until a button is clicked by the user.
I want to stop my sequence of codes (statements) until a button is clicked by the user.
how can I go this ?
Upvotes: 0
Views: 4063
Reputation: 59543
Whatever it is that you want to happen after the button is clicked, just put that code in the handler for the button-click event. To get to that handler, double click on the button in the designer.
Upvotes: 2