logo search
Учебник_ПОА

How to: Call a Button's Click Event Programmatically

Even if a user does not click a button, you can raise the button's Click event programmatically by using the PerformClick method. The following example demonstrates how to call the click event of a button within a program. When button2 is clicked, the click event for button1 is also triggered.