Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
NotifyIcon Class
Events
 MouseDown Event

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
NotifyIcon.MouseDown Event

Occurs when the user presses the mouse button while the pointer is over the icon in the status notification area of the taskbar.

[Visual Basic]
Public Event MouseDown As MouseEventHandler
[C#]
public event MouseEventHandler MouseDown;
[C++]
public: __event MouseEventHandler* MouseDown;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type MouseEventArgs containing data related to this event. The following MouseEventArgs properties provide information specific to this event.

Property Description
Button Gets which mouse button was pressed.
Clicks Gets the number of times the mouse button was pressed and released.
Delta Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch of the mouse wheel.
X Gets the x-coordinate of the mouse.
Y Gets the y-coordinate of the mouse.

Remarks

For information about handling events, see Consuming Events.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

NotifyIcon Class | NotifyIcon Members | System.Windows.Forms Namespace | MouseMove | MouseUp

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker