General discussion

Locked

Caption Color of a Command Button

By sanjeev_chimmalagi ·
Could I change the Caption Color that is displayed on the command button in Visual Basic?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Caption Color of a Command Button

by fofa In reply to Caption Color of a Comman ...

There is a foreground color via the font you can use.

Collapse -

Caption Color of a Command Button

by sanjeev_chimmalagi In reply to Caption Color of a Comman ...

The question was auto-closed by TechRepublic

Collapse -

Caption Color of a Command Button

by Peter Ritchie In reply to Caption Color of a Comman ...

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.

Collapse -

Caption Color of a Command Button

by sanjeev_chimmalagi In reply to Caption Color of a Comman ...

The question was auto-closed by TechRepublic

Collapse -

Caption Color of a Command Button

by RSV In reply to Caption Color of a Comman ...

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. :)

Collapse -

Caption Color of a Command Button

by sanjeev_chimmalagi In reply to Caption Color of a Comman ...

The question was auto-closed by TechRepublic

Collapse -

Caption Color of a Command Button

by sanjeev_chimmalagi In reply to Caption Color of a Comman ...

This question was auto closed due to inactivity

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums