Solved

DateTimePicker ForeColor

Posted on 2003-11-28
3
1,218 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# LINQ ForEach() question 6 90
bound data table problem 2 42
linq, c# 8 37
How to set focus on a dynamic control 18 29
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

696 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