Select the DTPicker, select Design mode, and in the property settings, set
the Max date & Min Date.
Mike F
"Robert Crandal" <(E-Mail Removed)> wrote in message
news:wl7Pm.11192$(E-Mail Removed)...
> Ugghhh..... Guess what Mike? I can't use Calendar Control 8.0 at
> work. I can only use Microsoft Date & Time Picker 6.0.
>
> Do you know how to do this same thing with MS DT Picker 6.0?
> I tried the following code below, but it doesnt seem to work:
>
> Private Sub DTPicker1_AfterUpdate()
> If DTPicker1.Year > 2011 Then DTPicker1.Year = 2011
> If DTPicker1.Year < 2009 Then DTPicker1.Year = 2009
> End Sub
>
> Maybe I forgot to initialize something??
>
> Thanks sooooooo much for your help!
>
> "Mike Fogleman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Private Sub Calendar1_AfterUpdate()
>> If Calendar1.Year > 2011 Then Calendar1.Year = 2011
>> If Calendar1.Year < 2009 Then Calendar1.Year = 2009
>> End Sub
>>
>> Mike F
>
|