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
348 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
ID: 34144695
I believe that they only way to do that would be to create your own activex control.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 34144838
What environment is this?
0
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 250 total points
ID: 34145227
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
ID: 34176171
I didn't get any real options
0
 
LVL 45

Expert Comment

by:aikimark
ID: 34176266
You might want to replace the DTPicker.

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Runtime error 76: path not found error VB6 program on Windows 7 3 320
VBA/SQL - Connect to SQL server and pull data 4 88
Copy a row 12 57
VB6 ListBox Question 4 30
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…

919 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

19 Experts available now in Live!

Get 1:1 Help Now