I have a button in my Windows Forms app and I was trying to listen for a right click but when i tried to check for MouseButtons.Right it does not work. But MouseButtons.Left works
My code:
exitButton.MouseClick += (sender, e) =>
{
if (e.Button == MouseButtons.Right)
{
Application.Exit();
}
};
it works with Left but not right