Question Check if a button is clicked

You handle the Click event of the Button. In the designer, double-click the Button and that will generate a Click event handler, i.e. a method that will be executed when the Button is clicked. Any code you put in that method will be executed when the Button is clicked.
 
can you check if a certain button is pressed
You don't check if a button is clicked (that's what a checkbox, radio buttons or combobox selection is for)

Instead when the button is clicked you do something, ie you handle it's Clicked event to run some code to do whatever it is that needs to be done.
 
Back
Top