To programmatically press a button , checkbox, radiobutton or controls derived from ButtonBase or implementing the IbuttonControl interface use the PerformClick method.
button1.PerformClick();
To programmatically press a button , checkbox, radiobutton or controls derived from ButtonBase or implementing the IbuttonControl interface use the PerformClick method.
button1.PerformClick();
To check whether a mouse button is down use the static Control.MouseButtons property.
Example:
if ((Control.MouseButtons & MouseButtons.Right ) == MouseButtons.Right ) { .. }