change background color of disabled txt field

ssfftt

Well-known member
Joined
Oct 27, 2005
Messages
163
Programming Experience
1-3
when i set txtAAA.enable = False, it goes gray at runtime, is it possible to set a text field not change the color to gray when it's disabled?
 
txtAAA.ReadOnly = True
txtAAA.Backcolor = SystemColors.Window

will make it readonly yet the backcolor can be changed to whatever you want
also you can always put whatever text in it whether it's disabled or readonly or not too
 
Back
Top