Discussion Locked

Caption Color of a Command Button

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Could I change the Caption Color that is displayed on the command button in Visual Basic?

7 replies

by peter ritchie

The easiest way is to use a transparent GIF with the font and color you want and set the Picture property to that picture.

The only other way I can think of is to hook into the system and intercept the WM_CTLCOLORBTN message and set the foreground color.

by rsv

Hi,
The only solutions I know is, make a image/picture with the desired font and color and set the command button's style property to Graphical and pass the picture name to the Picture property of the command button. This way you can achieve what you want.

Hope this will help you. :)

This discussion is closed to new replies.