Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted
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......

Proudly a Palestinian

Microsoft ASP.NET MVP

My Blog: wessamzeidan.net

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...