?
Solved

DateTimePicker ForeColor

Posted on 2003-11-28
3
Medium Priority
?
1,222 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:
Desp 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

771 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