Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing forecolor of disabled controls
Message
De
26/09/2008 16:48:00
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01345277
Message ID:
01351113
Vues:
39
>Bonnie,
>
>I had just scanned his article. I guess I was reading it with a bit of wishful thinking.
>
>Linda


Does that mean you didn't start out right away with your own set of sub-classed controls and you used the Microsoft controls? That's always the first thing I do, start out with my own sub-classes. Even if they don't have any code in them to begin with, because sure enough you'll need to add something somewhere. =0)

~~Bonnie




>
>>Linda,
>>
>>>This looks great. I was dreading the thought of creating a whole new set of controls and having to change all my forms. I'm going to try this out. Thanks.
>>
>>Eric's code is based on the fact that you have your own set of base classes already, sub-classed from the Windows.Forms controls. If you're using the Windows.Forms controls without having created your own set of sub-classes, then you're going to have to create new controls. So, I'm not sure what you mean by the above statement
>>
>>~~Bonnie
>>
>>
>>
>>>
>>>>>Is there any way to change the forecolor on a disabled control, such as a text box? The contrast is so low as to be nearly unreadable and my user really wants to have controls disabled unless the user selects the edit or new button. Thanks.
>>>>
>>>>I wrote an article on that topic that covers more then just the TextBox: http://www.emoreau.com/Entries/Articles/2005/07/Colors-of-disabled-controls.aspx
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform