Disabled Text Boxes Color

pad

Member
Joined
Jan 18, 2005
Messages
14
Programming Experience
5-10
Hi...

In VB.Net (including windows standards) if we disabled any textboxes automatically, it becomes grayed in background. but i would like to change the color at runtime (because runtime i'm making the textboxes as enabled or disabled) with some other colors for disable and enables. and also i would like to change forecolor of disabled textboxes.


need the code...

thanks for advance...
 
Instead of Enabled use readonly, you will then be able to set the Forecolor and the backcolor of you control.

TPM
 
Back
Top