How do I grey out dates in the DTPicker so that I can show non selectable dates in gray.

I am using a DTPicker control to allow the selection of a date.  I want to be able to highlight dates that are not to be selected in, a bit like how it shows the dates in the previous or next month.
keymacAsked:
Who is Participating?
 
Brook BraswellApplication Development ManagerCommented:
I believe that they only way to do that would be to create your own activex control.
0
 
aikimarkCommented:
What environment is this?
0
 
Patrick MatthewsCommented:
keymac,

I do not think you can do that.  However, the DTPicker has MinDate and MaxDate properties; if you set those, it will be impossible for a user to select a date outside that defined range.

Patrick
0
 
keymacAuthor Commented:
I didn't get any real options
0
 
aikimarkCommented:
You might want to replace the DTPicker.

Consider this one:
http://ccrp.mvps.org/
http://ccrp.mvps.org/controls/ccrpdtp5.htm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.