i'm looking for code to catch a right click in the background using a windows forms application using hooks.
I already have something for individual buttons, now I'm looking for hooks for the mouse, someone ideas?
i'm looking for code to catch a right click in the background using a windows forms application using hooks.
I already have something for individual buttons, now I'm looking for hooks for the mouse, someone ideas?
Button.MouseClick += SomeMethod;
private void SomeMethod(object sender, MouseEventArgs e)
{
if (!e.Button.Equals(System.Windows.Forms.MouseButtons.Right))
{
// do work
}
}