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!

Control MouseDown Event

[To be supplied.]

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

[Visual Basic]
Private Sub ControlName_MouseDown( _
   ByVal sender As Object, _
   ByVal e As MouseEventArgs _
)
[C#]
private void ControlName_MouseDown(
   object sender,
   MouseEventArgs e
);
[C++]
private: void ControlName_MouseDown(
   Object* sender,
   MouseEventArgs* e
);
[JScript]
private ControlName_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

Control Class | Control MembersTopic | System.WinForms Namespace