Results 1 to 3 of 3

Thread: more toolbar stuff

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Smile

    I have a toolbar with a button that is a dropdown type.
    I know how to make the button do something, but how do I get the items in the list to do something?

    Thanks, by the way, for the response below!

  2. #2

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    whoa, don't all answer at once!

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You just reference the ButtonMenu's key and that is whatever you assign on your toolbar in the menu's key property
    Code:
    Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
    Select Case ButtonMenu.Key
       Case "one"
          MsgBox "one"
       Case "s1"
          MsgBox "sub one"
       End Select
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width