By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

Changing Caption Color

Ali Rizwan
100+
P: 927
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Aug 31 '07 #1
Share this Question
Share on Google+
5 Replies


VBPhilly
P: 95
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Not supported.

A possible solution is to set a Checkbox control to Graphical which makes it look like a button. Checkbox control has a forecolor property that you can change.
Aug 31 '07 #2

sgrec7
P: 59
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Ok now let me get this straight...

i use VB6 all the time at school (BTW I'm not at school right now) but i thing if its the colour of the text that you want to change

eg. "command 1" needs to be green instead of black

then go to the properties of the command button and change the forecolour to green.

if its the back colour you want to change then you should change the style (i think) from "1 Standard" to "2 Graphical" (or something like that {i cant remember exactly but i'll check next time I'm at school}) and then after that change the back colour of the command button to the desired colour.

i hope that helps.

if that doesn't work then i'll get the correct working form school on Monday (BTW i'm in Oz so today is Saturday for me)
Sep 1 '07 #3

debasisdas
Expert 5K+
P: 8,127
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
Sep 1 '07 #4

sgrec7
P: 59
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
wait were u saying this about my post??? because thats how i always do it in VB 6 thats what the teacher showed us ages ago!!

(But i must admit it leaves a grey border around the command button)
Sep 2 '07 #5

sgrec7
P: 59
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
shit!!! sorry, you were right i thort he ment backcolor :(
Sep 2 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.