Ok simple question, how do i know what button the user clicked on?? I also have a dropdown button, and how do i make a menu appear from it??
Printable View
Ok simple question, how do i know what button the user clicked on?? I also have a dropdown button, and how do i make a menu appear from it??
give the button a name and respond in the btton_click event.
Here ya go:
Code:Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key 'Set this property inside the toolbars properties
Case Is = "Email"
MsgBox "Email toolbar button clicked"
Case Is = "File"
MsgBox "File toolbar button clicked"
End Select
End Sub
ill give it a try, thanks both of ya