How can I simulate a visual click on a button in my form (WinForms)?
I don’t mean:
Button_Press(MyButton, new KeyPressEventArgs());
I want the user to see (visually) the button being clicked.
Of course I don’t want to use
SendKeys.Send("{ENTER}")
or other functions of this kind.
If you use a RadioButton instead of a normal Button, you can set its .Appearance property to “Button” and then modify its .Checked property from somewhere else.
eg.
and then call:
or
It will look just like a regular button.