Programmatically press a buton, checkbox etc

To programmatically press a button , checkbox, radiobutton or controls derived from ButtonBase or implementing the IbuttonControl interface use the PerformClick method.

button1.PerformClick();

Leave a Reply

Your email address will not be published. Required fields are marked *