Search:
Namespaces
Discussions
.NET v1.1
Feedback
Disabled Control Background
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.general
.
Post a new message to this list...
Skip Borland
Has anyone tried to control the color changes that occur when a .net control
(in this case specifically, a combo box) is disabled? We are trying to limit
input, yet not have the control go gray on gray when disabled (or at least
be able to control the behavior). Any thoughts on this would be
appreciated....Skip
Reply to this message...
Sijin Joseph
You can try setting the
DrawMode
property to OwnerDrawXXX and then doing
the painting yourselves in the DrawItem event.
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Skip Borland wrote:
[Original message clipped]
Reply to this message...
Skip Borland
Thanks Sijin. Am trying this now, but am having trouble getting the DrawItem
event to fire. How is this triggered? I've tried changing the
DrawMode
property (which, once changed and a property changed) is supposed to fire
the event, correct?
"Sijin Joseph" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.Windows.Forms.DrawMode
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com