how to change the font color of command button please help newbiee....

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 9
Reputation: agent7 is an unknown quantity at this point 
Solved Threads: 1
agent7 agent7 is offline Offline
Newbie Poster

how to change the font color of command button please help newbiee....

 
0
  #1
Aug 7th, 2009
how to change the font color of command button please help newbiee....
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: Lightstar is an unknown quantity at this point 
Solved Threads: 0
Lightstar Lightstar is offline Offline
Newbie Poster

Re: how to change the font color of command button please help newbiee....

 
0
  #2
Aug 7th, 2009
Originally Posted by agent7 View Post
how to change the font color of command button please help newbiee....
Hi... this is only base on my Knowledge i dont Know if their something else solution with your Problem... Just go to the Properties window, find forecolor and choose your favorite color,but before that you must click the command button.. but honestly you can't apply a font color in command button..
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 9
Reputation: agent7 is an unknown quantity at this point 
Solved Threads: 1
agent7 agent7 is offline Offline
Newbie Poster

Re: how to change the font color of command button please help newbiee....

 
0
  #3
Aug 7th, 2009
Originally Posted by Lightstar View Post
Hi... this is only base on my Knowledge i dont Know if their something else solution with your Problem... Just go to the Properties window, find forecolor and choose your favorite color,but before that you must click the command button.. but honestly you can't apply a font color in command button..
thankz for the suggestion i do that before but it doesn't affect my button.. is there any solution??
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 10
Reputation: abhi.navale is an unknown quantity at this point 
Solved Threads: 2
abhi.navale's Avatar
abhi.navale abhi.navale is offline Offline
Newbie Poster

Re: how to change the font color of command button please help newbiee....

 
0
  #4
Aug 7th, 2009
I guess you are talking about vb6.
I am using vb6 since past 1 yr and I learned that there is no such way (using vb) to change button font color.
Initially when i was newbie I also had that thought of changing the color and I approached me professors and few internet sources. But nothing helped me.
In short you cannot change button font color using vb.
(I will be very thankful if anyone really prove me wrong! Because I also want to change the color of button font)
Abhi
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: lalchetian is an unknown quantity at this point 
Solved Threads: 0
lalchetian lalchetian is offline Offline
Newbie Poster

Re: how to change the font color of command button please help newbiee....

 
0
  #5
Aug 7th, 2009
Easiest workaround would be to to make a image with required text and color. It won't take much time. set button's picture property to that picture and style to 2-graphical
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,103
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: how to change the font color of command button please help newbiee....

 
0
  #6
Aug 7th, 2009
Just change the style property to graphical.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 832
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 152
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: how to change the font color of command button please help newbiee....

 
0
  #7
Aug 7th, 2009
Yeah, that is one of the unfortuanate things about the command button is that they did not expose the fontcolor or forecolor for the control, but you can get around this (as mentioned above) by setting the style property to graphical at design time. Then you could use a picture box of the appropriate size with autoredraw set to true. Set its forecolor to the color you want then use Picture1.Print "Your Caption". After that set command1.picture = picture1.image. However, to get it to look right, you will have to set the currentx and currenty properties of the picture box before you print your caption.


Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 9
Reputation: agent7 is an unknown quantity at this point 
Solved Threads: 1
agent7 agent7 is offline Offline
Newbie Poster

Re: how to change the font color of command button please help newbiee....

 
0
  #8
Aug 7th, 2009
gud day guyz.. thankz to all your response i will try all the opinions you suggest..i am very luck that u appreciate my post..thankz to all,,
it help me a lot ...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC