You are right, you can't change the color of the Font on a command
button. Instead use an Option button and change the Style to
Graphical. Now you can change the Forecolor of this which does change
to Font color. It still acts like an Option button and will remain
pressed in like an Option control would...so you need to add some code
to pop it back out like a command button would.
> > >Is there any way in VB6 to access and modify Windows 2K/XP TCP/IP
> > >Properties?
[quoted text clipped - 3 lines]
> I ended up using a combination of VB Script and VB6. I got some VB Script
> code from Microsoft (brought to my attention by another individual in
> another newsgroup)
http://www.microsoft.com/technet/scriptcenter/scripts/network/client/modify/defa
ult.mspx
.
> I used portions from four different scripts from that page then put them
> into a VB6 form with two radio buttons and a command button. Here's that
[quoted text clipped - 96 lines]
> Thanks,
> Jim
Jim in Arizona - 26 Jan 2005 16:47 GMT
> You are right, you can't change the color of the Font on a command
> button. Instead use an Option button and change the Style to
> Graphical. Now you can change the Forecolor of this which does change
> to Font color. It still acts like an Option button and will remain
> pressed in like an Option control would...so you need to add some code
> to pop it back out like a command button would.
Have any idea what kind of code would raise or keep it raised? When a form
loads with a single graphical option button, it is selected and therefor
appears pushed in. I tried this:
Sub Form_Load
Option1.Value = False
End Sub
But that didn't do it.
Also, once I push the button in, how would it pop back out when the person
let go of the mouse button?
Thanks for the idea. I didn't know an option radio button could go graphical
like that.
Randy Birch - 26 Jan 2005 17:11 GMT
http://vbnet.mvps.org/code/intrinsic/buttoncolorcheck.htm

Signature
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
: > You are right, you can't change the color of the Font on a command
: > button. Instead use an Option button and change the Style to
[quoted text clipped - 18 lines]
: Thanks for the idea. I didn't know an option radio button could go graphical
: like that.
Jim in Arizona - 26 Jan 2005 22:54 GMT
> http://vbnet.mvps.org/code/intrinsic/buttoncolorcheck.htm
<------SNIP------>
I looked at both methods of changing the forecolor for 'buttons' and I liked
the check box way of doing it the best. The final code, and all that I
needed, was:
Private Sub Check1_Click()
If Check1.Value = vbChecked Then
Check1.Value = vbUnchecked
'Action Coding Here
End If
End Sub
Thanks for everyone's help and input.
Jim
Compu-Pikachu - 26 Jan 2005 16:57 GMT
[BTPANEK09] You can't change the color of the font on a command button.
[COMPU-PIKACHU] Your informing me of that interestingly surprising tidbit is
appreciated. Would you happen to also know why buttons lack ForeColor
properties?
Jim in Arizona - 26 Jan 2005 20:58 GMT
> [BTPANEK09] You can't change the color of the font on a command button.
>
> [COMPU-PIKACHU] Your informing me of that interestingly surprising tidbit
> is appreciated. Would you happen to also know why buttons lack ForeColor
> properties?
[Jim In Arizona] I would like to know!
Bob O`Bob - 31 Jan 2005 21:43 GMT
>>[BTPANEK09] You can't change the color of the font on a command button.
>>
[quoted text clipped - 3 lines]
>
> [Jim In Arizona] I would like to know!
OMG it's contagious!