Double Click button

jmasgalas

Member
Joined
Apr 21, 2007
Messages
15
Programming Experience
Beginner
This is most likely very simple but I want to have a button require a double click instead of a single click. How do I do this? Thanks!
 
Add a public PerformDoubleClick sub to the Doubleclickbutton class
VB.NET:
Public Sub PerformDoubleClick()

End Sub

where you call the protected OnDoubleClick method (passing EventArgs.Empty).
VB.NET:
OnDoubleClick(EventArgs.Empty)
 
I have a button and a timer.

On the timer, how do I double-click the button?
It would be better to use a common method that both your button and timer event handlers can call.
VB.NET:
Sub ButtonClicks()
   DoSomething()
End Eub

Sub TimerTicks()
   DoSomething()
End Sub

Sub DoSomething()
   ' the common code
End Sub
 
Back
Top