EFileTahi-A Posted July 13, 2005 Posted July 13, 2005 (edited) Ok, we all know that when a textbox is disabled its backcolor will also change. The problem is when you change the textbox backcolor during runtime. If you disable the a textbox after its backcolor was changed, it will no longer change to its disabled color but keep the one you assign. What I need to know is how can I tell the textbox to keep changing to its disabled color even after I forced it to go yellow? If this was not explicit enough let me know about it... Edited July 13, 2005 by EFileTahi-A Quote
AlexCode Posted July 13, 2005 Posted July 13, 2005 Never faced that problem, but seems to me like a feature of the control. Try to handle that yourself, using the EnabledChanged Event of the textbox. This way you'll be shure that you'll get the correct colors. Just a short note. When desabling, you'll need to have a background variable to hold the backcolor you want to appear when enabled... Set this variable before setting the desable color. Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
EFileTahi-A Posted July 13, 2005 Author Posted July 13, 2005 Yeah, I was going to do that unless someone would come up here with so other ideia... But thaks for the input ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.