|
-
Oct 20th, 2006, 04:15 AM
#1
Thread Starter
Lively Member
XP Style VBA forms & buttons
I was just wondering if I can change the looks of VBA forms (in Excel) to look like XP style forms and buttons. Is there a way to do this? I am using Excel 2003.
Cheers
Webservant
-
Oct 24th, 2006, 12:47 AM
#2
Re: XP Style VBA forms & buttons
No, VBA UserForms and controls do not support XP Visual Styles. You could do all the drawing yourself but if the user is using a custom theme then it would be next to impossible to match the theme. Way too much code and work for the minimal visual benefit.
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 
-
Oct 24th, 2006, 05:19 AM
#3
Re: XP Style VBA forms & buttons
Well.... there is another solution. You could create the buttons with photoshop (whatever) and place them in an imagebox.
-
Oct 24th, 2006, 11:29 AM
#4
Re: XP Style VBA forms & buttons
Yes, that will kind of work as if the user has a custom theme or changes his theme then it wont look legit.
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 
-
Oct 24th, 2006, 11:43 AM
#5
Addicted Member
Re: XP Style VBA forms & buttons
 Originally Posted by RobDog888
No, VBA UserForms and controls do not support XP Visual Styles.
Do you know if they will? Like under the .NET framework (if relevant)?
Maybe a workaround could be to make the form in VB (with XP styles) and have VBA call the form?
-
Oct 24th, 2006, 11:48 AM
#6
Re: XP Style VBA forms & buttons
VBA userforms are a completely different design then a standard vb.net or vb 5,6 form. Their client area is actually a separate window. 
I would think that the UserFoms will fade in their use as other possibilities exist like using vvs.net automation and using a vs.net form instead. I have already tried using VSTO and applying the styles but it only applied it to the msgboxs and no controls or form.
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
|