Hi,
In VS2022 I can create a windows form using C#
Lets say that there are 4 buttons on the form, button1, button2, button3, button4
Each button has an onclick method
Lets say that all it does when you click a button is show a message "Hello, Button 1 clicked " etc.
finally lets say that you start the windows application and you then click button1 and it displays the message, my question is:
Until you click another button, what is happening in the background, is there some process that is just waiting for a button click or is the application code doing something else, IE moving from 1 method to the next until it knows a button has been clicked.
What I'm ultimately after is knowing how to get the application to do something else whilst waiting for a button click but then if a button has been clicked then stop doing whats its doing and concentrate on the button click
or
am I talking crap lol