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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable colour

Status
Not open for further replies.

CookieNZ

MIS
Apr 22, 2002
48
NZ
Depending on the status, certain text boxes and buttons are disable using the txtcontact.enabled = false statement.

However, this always sets the cell and button colour to the off grey. Is is possible to determine the colours used when the cell is enabled/disabled?
 
I don't believe there is a specific property for this. However you could set the backColor and fontColor to the values you want after the control has been disabled which in effect does the same thing, just more code. [peace]
 
I assume that it goes on the lines of..

txtcalldescription.BackColor()=

but what syntax is used to set the colour?
 
I have found the correct syntax txtcalldescription.color=color.blue ( using imports system.drawing) but where can I find a list of he the standard MS colour and the actual colour?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top