Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / February 2005

Tip: Looking for answers? Try searching our database.

Changing background color of a disabled control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jean-dot-paul-at-opelwilly-dot-com - 22 Feb 2005 19:00 GMT
Hello,

How can I change the background color of a textbox when it is disabled or
readonly

Greets

Jean Paul
ON7AMI
Kevin Cummings - 22 Feb 2005 20:26 GMT
You'll probably have to create a custom textbox control and change the
background color when the control is disabled. I believe that the regualar
controls stop responding to property changes when they are disabled but if
you implement your own you can do whatever you want.

Good Luck!

> Hello,
>
[quoted text clipped - 5 lines]
> Jean Paul
> ON7AMI
Herfried K. Wagner [MVP] - 22 Feb 2005 22:05 GMT
"jean-dot-paul-at-opelwilly-dot-com" <i@a> schrieb:
> How can I change the background color of a textbox when it is disabled or
> readonly

The background color of read-only textboxes actually /can/ be changed by
assigning the desired color to its 'BackColor' property.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.