|
-
Apr 10th, 2013, 09:00 AM
#1
Thread Starter
New Member
[RESOLVED] VB6 DTPicker disable particular dates
Hi! Would you please help me with the following problem?
When using DTPicker, how can I disable (/grey-out, etc.) certain dates (with no particular pattern) so that the user cannot select it?
Any help would be appreciated!
Thank you!
-
Apr 10th, 2013, 09:36 AM
#2
Re: VB6 DTPicker disable particular dates
That doesn't seem to be possible. Can't you just inform the users that their selected dates cannot be accepted?
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Apr 10th, 2013, 09:40 AM
#3
Re: VB6 DTPicker disable particular dates
One way...
-Keep the no-allowed dates in a table/list/vector/array
-when user selects any date, first thing to do is to check against that table/list/vector/array
-display a msgbox if is not a valid date
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
Apr 10th, 2013, 10:58 AM
#4
Thread Starter
New Member
Re: VB6 DTPicker disable particular dates
Thank you very much for your advice, Bonnie West and jggtz!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|