Denaes Posted April 28, 2004 Posted April 28, 2004 I'm disabling textboxes when users are in "View Mode" of my database. I can change the backcolor in runtime while the component is disabled, lets me get rid of the grey. But I need to change the disabled grey text to be a darker color. Maybe still black. Black on grey is better than grey on white I'd think. Can anyone help on that issue? Quote
wessamzeidan Posted April 28, 2004 Posted April 28, 2004 I had that same problem and couldn't find a solution. What I did was, place a label control below each textbox, and instead od disabling the textbox, I hide it and set the label's text to the textbox's text...... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
*Experts* Nerseus Posted April 28, 2004 *Experts* Posted April 28, 2004 Why not just use ReadOnly = true? It doesn't change the background color or foreground color. The only "negative" side is that it can still receive focus and show the caret (cursor). You can tweak that if you want, but I don't see a problem with it. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Denaes Posted April 28, 2004 Author Posted April 28, 2004 Well, you're very helpful today :D I'll try that as well. 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.