Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting forecolor in disabled textbox
Message
 
À
12/04/2004 18:31:23
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00892517
Message ID:
00894278
Vues:
12
Hi Lee,

>>The way I've worked around this is to place the control in a panel and disable the panel leaving the control enabled. It has the effect of "disabling" the control from the user's point of view, but lets you set the colors of the control however you like.

This does not seem to work for me. Enabling and disabling the Panel seems to enable and disable the controls within the Panel, thus changing the colors regardless.

This is my code:

panel1.Enabled = tf;
textBox1.BackColor = bc;
textBox1.ForeColor = fc;

tf, bc and fc are set elsewhere and textbox1 is within panel1

Thanks for your help,

Todd
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform