Results 1 to 4 of 4

Thread: how to resize a menu in vb6 when then form is resized

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    how to resize a menu in vb6 when then form is resized

    Hello to you all,

    I want to resize a form in visual basic6.
    But the problem is that the menu doesn't resize with the form.
    Anyone a suggestion?
    Thanks
    Catharinus van der Werf
    [Removed by Mod]
    Last edited by RobDog888; Jul 10th, 2007 at 12:49 AM. Reason: removed email address

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

    Re: how to resize a menu in vb6 when then form is resized

    Welcome to the Forums.

    What do you mean the menu doesnt resize? Menus shouldnt resize but the menu bar should span across th form at least.
    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
    Jul 2006
    Posts
    12

    Re: how to resize a menu in vb6 when then form is resized

    Hi Rob,
    When you change the resolution of your screen, eg from 1024 to 1200,
    then the form is smaller.
    I have created a function that enlarger the form automatically.
    For example, the width of the form is changed by the code
    me.width=me.with* resolutionfactor
    where the resolutionfactor = 1200/1024
    So, in this way the form is automatically resized to the size it
    had in screen-resolution 1024.

    But the menu-items in this form (menu-items, like in outlook: File, Edit,View, etc., are NOT resized. How can I resize them.?

    Thanks in advance

    Catharinus van der Werf
    www.figuresfirst.nl
    [email protected]

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

    Re: how to resize a menu in vb6 when then form is resized

    Like I posted they do not resize no matter what the screen size or resolution. If you want to resize them probably creating your own or subclassing the menu is what you will have to do. Not easy but not impossible either.

    Ps, you really shouldnt post your email address as you will get spammed heavily from the forum spiders and bots. You can provide your email address via your profile if you enable it.
    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

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