Type | Description |
Use the Select event to notify your application that the user selects an item by keyboard or by mouse. Use the Select property to retrieve the index of selected item.
Syntax for Select event, /NET version, on:
private void Select(object sender) { } Private Sub Select(ByVal sender As System.Object) Handles Select End Sub |
private void Select(object sender, EventArgs e) { } void OnSelect() { } void __fastcall Select(TObject *Sender) { } procedure Select(ASender: TObject; ); begin end; procedure Select(sender: System.Object; e: System.EventArgs); begin end; begin event Select() end event Select Private Sub Select(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Select End Sub Private Sub Select() End Sub Private Sub Select() End Sub LPARAMETERS nop PROCEDURE OnSelect(oRollist) RETURN |
<SCRIPT EVENT="Select()" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Select() End Function </SCRIPT> Procedure OnComSelect Forward Send OnComSelect End_Procedure METHOD OCX_Select() CLASS MainDialog RETURN NIL void onEvent_Select() { } function Select as v () end function function nativeObject_Select() return |
The following sample displays the caption of item being selected:
Private Sub Rollist1_Select() With Rollist1 With .Item(.Select) Debug.Print .Caption End With End With End Sub