|
-
Jul 20th, 2005, 01:20 PM
#1
Thread Starter
Lively Member
where can i find a button control with dblclick event?
where can i find a button control with dblclick event?
plz help
-
Jul 20th, 2005, 01:22 PM
#2
Re: where can i find a button control with dblclick event?
You could use VB's option button control, with its style set to graphical.
The option button has a DblClick event.
-
Jul 20th, 2005, 01:23 PM
#3
Re: where can i find a button control with dblclick event?
why do u need a BUTTON with a DOUBLE-CLICK event???
-
Jul 20th, 2005, 01:29 PM
#4
Thread Starter
Lively Member
Re: where can i find a button control with dblclick event?
because in VB6 the commandbutton component has no that event (as I see) and I need that
-
Jul 20th, 2005, 02:06 PM
#5
Re: where can i find a button control with dblclick event?
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.
-
Jul 20th, 2005, 03:49 PM
#6
Re: where can i find a button control with dblclick event?
I guess you could do this
VB 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|