You can easily do it by the following piece of code (assuming that name of your button is btnButton):
btnButton.PerformClick();
You can easily do it by the following piece of code (assuming that name of your button is btnButton):
btnButton.PerformClick();