Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DateTimePicker ForeColor

Posted on 2003-11-28
3
Medium Priority
?
1,224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 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