Anyone know how to call the toolbar button click event from code (and pass it something as either "sender" or "e" that tells the event handler which button I'm dealing with)?
This code can help you to call toolbar's button click event.
here you can give keyname or index values for your individual buttons on your toolbar.
Private Sub tbToolBar_ButtonClick(ByVal Button As MSComCtlLib.Button)
Select Case Button.Key
Case "keyname1"
execute statements1
Case "keyname2"
execute statements2
............
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.