Just call the handler sub from code. You need to pass an EventArgs
object though. Like this:
Visual Basic:
Private Sub ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim eArgs As New ToolBarButtonClickEventArgs(ToolBarButton2)
ToolBar1_ButtonClick(ToolBar1, eArgs)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.