Solved

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

Posted on 2010-11-15
5
347 Views
Last Modified: 2012-05-10
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
Comment
Question by:keymac
5 Comments
 
LVL 14

Accepted Solution

by:
Brook Braswell earned 250 total points
Comment Utility
I believe that they only way to do that would be to create your own activex control.
0
 
LVL 45

Expert Comment

by:aikimark
Comment Utility
What environment is this?
0
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 250 total points
Comment Utility
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
 

Author Closing Comment

by:keymac
Comment Utility
I didn't get any real options
0
 
LVL 45

Expert Comment

by:aikimark
Comment Utility
You might want to replace the DTPicker.

Consider this one:
http://ccrp.mvps.org/
http://ccrp.mvps.org/controls/ccrpdtp5.htm
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now