Add a public PerformDoubleClick sub to the Doubleclickbutton class
Public Sub PerformDoubleClick()
End Sub
where you call the protected OnDoubleClick method (passing EventArgs.Empty).
OnDoubleClick(EventArgs.Empty)
It would be better to use a common method that both your button and timer event handlers can call.I have a button and a timer.
On the timer, how do I double-click the button?
Sub ButtonClicks()
DoSomething()
End Eub
Sub TimerTicks()
DoSomething()
End Sub
Sub DoSomething()
' the common code
End Sub
Add a public PerformDoubleClick sub to the Doubleclickbutton class where you call the protected OnDoubleClick method (passing EventArgs.Empty).