Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
NotifyIcon Class
Events
 MouseUp Event
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.MouseUp Event

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

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

[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 | MouseDown | MouseMove

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