?
Solved

DateTimePicker ForeColor

Posted on 2003-11-28
3
Medium Priority
?
1,226 Views
Last Modified: 2010-05-18

I need a way to change the ForeColor of a DateTimePicker Control.

The regular dtp.ForeColor = System.Drawing.Color.Red; property does not work, it does not cause an error, but does not change any color.

Any suggestions?
Thanks in advance.
0
Comment
Question by:explodingvan1
1 Comment
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 750 total points
ID: 9841559
DateTimePicker.ForeColor is not supported in .net , however you can use DateTimePicker.CalendarForeColor:
dtp.CalendarForeColor = System.Drawing.Color.Red;
to change the calendar appearance

if you want to give the datetimepicker this feature , have a look at:
http://www.dotnet247.com/247reference/msgs/33/169265.aspx
its really a nice thread and is related to your problem

There is another dtpicker control which supports that feature
http://www.codeproject.com/cs/miscctrl/extended_datetimepicker.asp

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question