Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing forecolor of disabled controls
Message
From
13/09/2008 10:42:07
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345277
Message ID:
01347344
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform