Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A very simple Visual Basic Question about Command Buttons

Status
Not open for further replies.

Cndn

Programmer
Nov 22, 2001
22
0
0
CA
I wanted to be able to give my command buttons color, but when I set the backcolor nothing happens! Is there a way to set the backcolor and/or Textcolor??? Thanks for your help.
 
Hi,
You must change the style of button to 1-graphic.
(select button, on propeties window -> choose style --> select 1-graphic from list)

Cheer,
Uyen Chi
 
hi,

Yes you can set the backcolor in the properties off the textbox by what nguyentaiuyenchi posted before. But you can't set the forecolor of the text in the properties.
If you want to change the forecolor you have to do this in code.
If you want the code for this, post your e-mail and I will send you a little sample project with this code.

Hope this helps.
Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top