NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TrayIcon MouseDown Event

Occurs when the user presses a mouse button while the pointer is over a control.

The following declaration shows the syntax for a method that handles the MouseDown event.

[Visual Basic]
Private Sub TrayIconName_MouseDown( _
   ByVal sender As Object, _
   ByVal e As MouseEventArgs _
)
[C#]
private void TrayIconName_MouseDown(
   object sender,
   MouseEventArgs e
);
[C++]
private: void TrayIconName_MouseDown(
   Object* sender,
   MouseEventArgs* e
);
[JScript]
private TrayIconName_MouseDown(
   sender : Object,
   e : MouseEventArgs
);

Parameters

sender
The source of the event.
e
A MouseEventArgs that contains the event data. 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.
X
Gets the x-coordinate of a mouse click.
Y
Gets the y-coordinate of a mouse click.

See Also

TrayIcon Class | TrayIcon MembersTopic | System.WinForms Namespace | TrayIcon.MouseMove | TrayIcon.MouseUp | MouseEventArgs