<<VB4>> Grrrrrr - Font colour 
Author Message
 <<VB4>> Grrrrrr - Font colour

OK, how can I just change the font colour on a command button.
No forecolor property there that I can see.  Please tell me, I'm
starting to think I'm just losing it.

Thanks
--
Shawn Ashton



Sun, 12 Aug 2001 03:00:00 GMT  
 <<VB4>> Grrrrrr - Font colour
As far as I know, you can't. However, you can kludge up a solution. Place a
Control that can take your desired text (PictureBox, TextBox) on top of a
Command Button (use ZOrder method to move it to front, if necessary). Set
the BackGround property of the PictureBox to match the Command Button and
turn off 3D and BorderStyle (if appropriate). Set the ForeColor to the
desired color you want and set the Text property (or Print the text on to
the control). Put the following in the GotFocus event of the
PictureBox/TextBox:

          Command1.SetFocus
          Command1_Click

(Assuming the Command Button's name is Command1). Put the normal Command
Button code in the Click event of the Command Button. Voila.

Rick
==================

Quote:

>OK, how can I just change the font colour on a command button.
>No forecolor property there that I can see.  Please tell me, I'm
>starting to think I'm just losing it.

>Thanks
>--
>Shawn Ashton



Sun, 12 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. <<<<<<<<ComboBox>>>>>>>>>>>>

2. HELP >>>>>>WIN API <<<<<<<<<<

3. <font color=red><font size=256>S.O.S.!!!</font></font>

4. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

5. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

6. <<<<HELP- OLE container Control>>>>>>>>>

7. VB5<->RDO2<->ODBC<->ORACLE Procedure Problem

8. <<<Cneck Box>>>

9. <<<Gif Files>>>

10. <<<CD ROM>>>

11. <<<Win32Api.TXT>>>

12. <<<NetWork Drv>>>

 

 
Powered by phpBB® Forum Software