Hi,

How can I set the background color of DateTime picker control when its
disabled.

Regards,
Naeem

RE: DateTime picker control by Edmire

Edmire
Thu May 19 12:35:22 CDT 2005

What if you enable the control then set the background color and then disable
it?

"Naeem" wrote:

> Hi,
>
> How can I set the background color of DateTime picker control when its
> disabled.
>
> Regards,
> Naeem
>
>
>

Re: DateTime picker control by Herfried

Herfried
Thu May 19 14:21:55 CDT 2005

"Edmire" <Edmire@discussions.microsoft.com> schrieb:
> What if you enable the control then set the background color and then
> disable
> it?

DateTimePicker doesn't support setting a background color out of the box:

Providing support for setting a datetimepicker's background color
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=datetimepickerbackcolor&lang=en>

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


Re: DateTime picker control by Naeem

Naeem
Thu May 19 18:23:41 CDT 2005

Thank you Herfried,
I will try that inherited control now instead of the DateTimePicker control.

Naeem

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23D$8NfKXFHA.2540@tk2msftngp13.phx.gbl...
> "Edmire" <Edmire@discussions.microsoft.com> schrieb:
>> What if you enable the control then set the background color and then
>> disable
>> it?
>
> DateTimePicker doesn't support setting a background color out of the box:
>
> Providing support for setting a datetimepicker's background color
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=datetimepickerbackcolor&lang=en>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>