Type | Description |
The Click event is fired when the user releases the left mouse button over the control. Use a MouseDown or MouseUp event procedure to specify actions that will occur when a mouse button is pressed or released. Unlike the Click and DblClick events, MouseDown and MouseUp events lets you distinguish between the left, right, and middle mouse buttons. You can also write code for mouse-keyboard combinations that use the SHIFT, CTRL, and ALT keyboard modifiers. Use the SelectItem property to get the index of the selected item. Use the SelectGroup property to get the index of the selected group.
Syntax for Click event, /NET version, on:
private void Click(object sender) { } Private Sub Click(ByVal sender As System.Object) Handles Click End Sub |
private void ClickEvent(object sender, EventArgs e) { } void OnClick() { } void __fastcall Click(TObject *Sender) { } procedure Click(ASender: TObject; ); begin end; procedure ClickEvent(sender: System.Object; e: System.EventArgs); begin end; begin event Click() end event Click Private Sub ClickEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClickEvent End Sub Private Sub Click() End Sub Private Sub Click() End Sub LPARAMETERS nop PROCEDURE OnClick(oListBar) RETURN |
<SCRIPT EVENT="Click()" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Click() End Function </SCRIPT> Procedure OnComClick Forward Send OnComClick End_Procedure METHOD OCX_Click() CLASS MainDialog RETURN NIL void onEvent_Click() { } function Click as v () end function function nativeObject_Click() return |