Results 1 to 6 of 6

Thread: File Menu

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    15

    Resolved File Menu

    Thanks for the help

    In my program I would like to have a drop down menu (like the one on internet explorer 'File', 'Edit', 'View') instead of having command buttons. How would i do this? Any help would be appreciated.

    Also if i were to add the menu drop down how will this change my code? So instead of clicking the command button i will be selecting from a drop down list.. so instead of command1_click() it will be menu1_click() or something?

    Thanks
    Last edited by jokerx; Dec 27th, 2004 at 09:17 AM. Reason: Resolved

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: File Menu

    Use the Menu Editor in VB when you are viewing the Form in design mode.
    Is this what you meant?




    Attached Images Attached Images   
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    15

    Re: File Menu

    yup thats it.. not exactly sure how to work it

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: File Menu

    Ok, no prob. To start bring up the Menu Editor and make sure your viewing
    (in desing mode and not run more) the form that you want the menu to be
    placed on..
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    15

    Re: File Menu

    okay i have done that

  6. #6
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    Re: File Menu

    I have attached a simple example of menus.

    Just study the menu structure and how you use code in it.

    This sample uses tree structure menus, shortcut keys and the underscores under letters of menu text (used for shortcuts also)

    try that

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