Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need assistance with the Toolbar control.

Status
Not open for further replies.

elmorro

Programmer
Jun 23, 2005
133
US
Hi all,
I have added a toolbar with a couple of buttons to my VB application. One of the buttons has a button menu. Right now the button menu only gets displayed when I click on the button menu itself. I want the menu to also display when I click on the button, but I can't get it to work.

Here is a sample of the code I am currently using:

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index

Case 2
Button.ButtonMenus(2).Visible = True
End Select
End Sub

Please help.

Thanks in advance,
elmorro :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top