|
-
Dec 4th, 2007, 08:00 AM
#1
Thread Starter
Addicted Member
Font color of command button caption
How the font color of commnd button cation is changed? In properties no such method found. Anyclue.
-
Dec 4th, 2007, 08:08 AM
#2
Re: Font color of command button caption
Easy way is to change the buttons Style property to Graphical but then you will lose any XP / Vista theming.
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 
-
Dec 4th, 2007, 08:17 AM
#3
Thread Starter
Addicted Member
Re: Font color of command button caption
thanks for the reply. I am using the style property as Graphical and inserted picture, so I want to change the font color of the caption from black to blue or anyother suitable color.
-
Dec 4th, 2007, 08:26 AM
#4
Re: Font color of command button caption
Sorry it should be an Option Button and set its Forecolor property with the Style being graphical.
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 
-
Dec 4th, 2007, 10:05 AM
#5
Re: Font color of command button caption
See "Setting A Command buttons Forecolor on this link" Change Command Button Forecolor
-
Dec 4th, 2007, 01:35 PM
#6
Re: Font color of command button caption
Or you could use Threed32.ocx its on the VB6 CD. You can set the button Forecolor to any colour or shade you want too.
You know this ocx has some really good controls and properties, its a pity people don't use it now, I do. 
Edit: Just thinking about it you could add pictures/icons to Command buttons 13 years ago with Threed16.ocx and Threed32.ocx. I can't remember if you could add them in VB5, its been a long time since I've used that.
Last edited by Keithuk; Dec 4th, 2007 at 02:25 PM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Dec 4th, 2007, 08:44 PM
#7
Re: Font color of command button caption
I never seen that control. Where is the path location for 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 
-
Dec 5th, 2007, 08:09 AM
#8
Re: Font color of command button caption
 Originally Posted by RobDog888
I never seen that control. Where is the path location for it?
Rob: its in Common\Tools\Vb\Controls. There are
Anibtn32.ocx for make animated buttons.
Dbgrid32.ocx which is an earlier version of the current Dbgrid32.
Gauge32.ocx where you can simulate different gauges, you just have to make you own pictures for the gauge background.
Graph32.ocx the earlier graph making control.
Grid32.ocx is the earlier version of MSFlxGrd.
Keysta32.ocx shows if the Caps Lock, Num Lock and I think Scroll Lock are switches on graphically.
Mschart.ocx the earlier graph making control.
Msoutl32.ocx I think it shows a Explorer type layout with folders and files.
Spin32.ocx is the earlier version of the current Up/Down control.
Threed32.ocx has the normal VB controls, Frame, Command button, Option button, Checkbox with an addition of Panel. All these controls have additional features like coloured button captions.
These are the older ActiveX controls that VB used to use.
You register these ocx's as normal in the Win\Sys folder then in the Controls folder there are 3 reg files what will give extra registration needed for these files, dbgrid.reg, mschart.reg and the important one vbctrls.reg. Without this last reg you won't get the controls loaded initially.
As I've said I don't know why some of these controls are used anymore.
If you want an app that will show these controls working then have a look Old Visual Basic OCX Demo that I made 3 years ago.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Dec 5th, 2007, 07:42 PM
#9
-
Dec 12th, 2007, 04:33 AM
#10
Re: Font color of command button caption
Top notch work Joacim
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
|