• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

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.
0
keymac
Asked:
keymac
2 Solutions
 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now