Button help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soramaster
    New Member
    • May 2007
    • 23

    Button help

    Using the cammond button how do make a combo box appear? Like in the menu if you click File a box under it will show up with commcands how do I do the same for a command button?
    Like the start button in windows

    thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Do u want to do it on a form or on a toolbar ?

    Comment

    • pureenhanoi
      New Member
      • Mar 2007
      • 175

      #3
      Originally posted by soramaster
      Using the cammond button how do make a combo box appear? Like in the menu if you click File a box under it will show up with commcands how do I do the same for a command button?
      Like the start button in windows

      thanks
      in the Form contains that Command Button, create a menu with at least two levels
      Code:
      [B]Menu Name[/B]         [B]Caption[/B]                      [B]Visibled[/B]
      mnuFile             &File                          False
      ...mnuNew         &New                              True
      ...mnuOpen       &Open                                True
      Insert following code into ur Form
      Code:
      Private Sub Command1_Click()
               PopupMenu mnuFile,,Command1.Left,Command1.Top+Command1.Height
      End Sub

      Comment

      • soramaster
        New Member
        • May 2007
        • 23

        #4
        And how do I add an image next to it? Like for New there whould be a picture next to it




        Also how do I make it where something disabled untill you put some kind of code in, S/N?

        Also how do I make it password protecterd where before the program starts it will need a username and pass? I been looking and can't find it.

        Comment

        • soramaster
          New Member
          • May 2007
          • 23

          #5
          So how can I do all of that? I've been looking around on this board and on google.com.

          Comment

          • pureenhanoi
            New Member
            • Mar 2007
            • 175

            #6
            Originally posted by soramaster
            And how do I add an image next to it? Like for New there whould be a picture next to it




            Also how do I make it where something disabled untill you put some kind of code in, S/N?

            Also how do I make it password protecterd where before the program starts it will need a username and pass? I been looking and can't find it.
            To add image next to menu Item, u can read following article:How To Associate a Graphic with a Menu Item

            Comment

            Working...