|
-
Jul 10th, 2007, 12:37 AM
#1
Thread Starter
New Member
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
-
Jul 10th, 2007, 12:49 AM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jul 10th, 2007, 01:04 AM
#3
Thread Starter
New Member
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]
-
Jul 10th, 2007, 01:21 AM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|