Solved

DateTimePicker ForeColor

Posted on 2003-11-28
3
1,214 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
3 Comments
 
LVL 19

Accepted Solution

by:
Desp earned 250 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now