where can i find a button control with dblclick event?
plz help
Printable View
where can i find a button control with dblclick event?
plz help
You could use VB's option button control, with its style set to graphical.
The option button has a DblClick event.
why do u need a BUTTON with a DOUBLE-CLICK event??? :confused: :confused:
because in VB6 the commandbutton component has no that event (as I see) and I need that
You could also use either the Image Control or the Picturebox control for a command button. Actually, this is done alot because you can add cool pictures to them.
Both controls have DblClick events.
I guess you could do thisVB Code:
Private Sub Command1_Click() Static lasttime As Single Dim DeltaTime As Single Dim CurrTime As Single CurrTime = Timer DeltaTime = CurrTime - lasttime If DeltaTime < 0.2 Then lasttime = 0 'do your Double click stuff here Debug.Print DeltaTime, "DoubleCLick" Else 'do single click stuff here lasttime = CurrTime End If End Sub