Results 1 to 4 of 4

Thread: [RESOLVED] VB6 DTPicker disable particular dates

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    12

    Resolved [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!

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    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)

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    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 ...

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    12

    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
  •  



Click Here to Expand Forum to Full Width