| | |
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
![]() |
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
how to change the font color of command button please help newbiee....
•
•
Join Date: Jul 2008
Posts: 9
Reputation:
Solved Threads: 1
•
•
•
•
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..
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)
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
•
•
Join Date: Mar 2009
Posts: 832
Reputation:
Solved Threads: 152
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
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- dynamically change fields (JavaScript / DHTML / AJAX)
- JTextArea & Font Color (Java)
- Ifstream - Change font (C++)
- change font type, font color, font size and bacground color in listbox (JavaScript / DHTML / AJAX)
- Change BackColor of CommandButton at Runtime (VB.NET)
- BCB6 Change font color in TMemo (C++)
- change the font/color of the selected text on a web page through javascript (JavaScript / DHTML / AJAX)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: WMP 9 playState Slow to Update
- Next Thread: mysqlfunction in vb6...
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






