InputPanel for WinForms帮助文档
MouseDown 事件 (InputComponent)






Fires when the user presses a mouse button on the component.
语法
'声明
 
<C1CategoryAttribute("鼠标")>
<C1DescriptionAttribute("当用户在组件上按下鼠标按键时触发。")>
Public Event MouseDown As System.Windows.Forms.MouseEventHandler
'用法
 
Dim instance As InputComponent
Dim handler As System.Windows.Forms.MouseEventHandler
 
AddHandler instance.MouseDown, handler
[C1Category("鼠标")]
[C1Description("当用户在组件上按下鼠标按键时触发。")]
public event System.Windows.Forms.MouseEventHandler MouseDown
public event MouseDown: System.Windows.Forms.MouseEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[C1Category("鼠标")]
[C1Description("当用户在组件上按下鼠标按键时触发。")]
public: __event System.Windows.Forms.MouseEventHandler* MouseDown
[C1Category("鼠标")]
[C1Description("当用户在组件上按下鼠标按键时触发。")]
public:
event System.Windows.Forms.MouseEventHandler^ MouseDown
事件数据

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

属性说明
Button  
Clicks  
Delta  
Location  
X  
Y  
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputComponent 类
InputComponent 成员

Send Feedback