Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • 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
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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