How to change the color of textbox after set enable to false?
Hi,
I am using VB.Net 2005, after I set my textbox enable to false, how can I change the background color and font color of the textbox? If I just change the font color property of the textbox, it doesn't seem work.
Thanks a lot.
YeeBoon Tuesday, November 14, 2006 4:10 AM
This guy is so kind to give you a solution when he met the same question.
why not "replace" the textbox (or combo, datetimepicker etc.) field with labels if you want to disable them. Labels are not editable. Label colors can be adapted. Just place a label over the control you want to disable and hide the control. For enabling hide the label and show the control.
Gavin Jin - MSFT Thursday, January 11, 2007 9:51 AM
This guy is so kind to give you a solution when he met the same question.