-
I have this project with the toolbar and a dropdown menu with it....... What I wanna know is how do u put commands when they click on the drop down menu, I'm dumb! I wanna know how to put a command, because toolbar doesn't have this:
Private Sub ToolBar1.Buttons(1).Menu(1)_Click ()
'Commands Here
End Sub
It doesn't have that dumb stuff!!!! I wanna know how to put a command when they click on the dropdown menu from the toolbar!!! HELP!!!!!!! :(
-
well, first create ur dropdown menu in the toolbar1 - create 3 drop menus giving them any caption and key....
after that, double click on the toolbar1, then add this code to ur buttonmenuclick state
Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Select Case ButtonMenu.Index
Case 1
MsgBox "First Drop Down Code"
Case 2
MsgBox "Second Drop Down Code"
End Select
end sub
that's all there is to it, :)
hope it helps ;)
Edited by mrdarkwarez on 03-10-2000 at 11:30 PM
-
THANXXXX, mrdarkwarez........ I appreciate it!
-
Wait........
That command only works in one dropdown, or does it..... if it does then can I have the command for more buttons instead of single button..... If not can u explain how to do this thing.........
The codes that u gave me works only for 1 buttons, and I'm really looking for codes that works for more than one button...... I don't know how to explain it for those of you who doesn't get it!
-
hmmm
i'm not quite sure what u mean, but i have done a project for you, see if its what u wanted... follow the address below:
http://www.geocities.com/darkwarezlll/modules
download the toolbarmenu.zip file
hope it helps :D
-
Thanxx
Hey, that really helped me now!!! :D! And thank you men, your cool :cool:!