Type | Description |
Use the Click event to notify your application that user clicks on the control. Use RClick event to notify your application that the user has clicked the right mouse button. For instance, if the OnClick property is exMoveContainer or exMoveControl, the Click event is fired only if the user has not moved the control. The AnchorClick event occurs when the user clicks a hyperlink element ( <a> ).
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(oDialog) 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 |