NotifyIcon.BalloonTipClicked events and mouse buttons

I have a NotifyIcon that signals downloadable application updates. I want the download page to open in the left click on NotifyIcon and on the left. Click on the NotifyIcon ball (on screen for 10 seconds).

However, when I handle the BalloonTipClicked event, I cannot figure out if it was a left or right click. Thus, while the balloon is still on the screen, and the user right-click on the icon, I get both a pop-up menu and the opening of the download page.

How to determine the right mouse button?

+5
source share
1 answer

:

    private void notifyIcon1_BalloonTipClicked(object sender, EventArgs e) {
        if ((Control.MouseButtons & MouseButtons.Right) == MouseButtons.Right)
            MessageBox.Show("Right button clicked");
    }

Win7, , . , .

+7

All Articles