Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by EFileTahi-A
Posted

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

Software bugs are impossible to detect by anybody except the end user.

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