I need to catch the MouseUp on right click anywhere on the form. I understand how to create custom event to handle the right click event on individual controls, but having issues with catching it regardless of where the right click happens; over a control or even in a blank space on the form.
So as stated, I understand how to catch the right click per individual controls:
this.myButton.MouseUp += new MouseEventHandler(this.myButton_MouseUpToGetHelpText);
private void myButton_MouseUpToGetHelpText(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
// Logic here
}
}
Just not quite sure how to listen for an event on the whole form. Any thoughts/suggestions appreciated.