Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21174

[RESOLVED] VB6 DTPicker MinDate/MaxDate

$
0
0
Hi! Would you please help me with the following problem:

I'm using the DateTimePicker from [Components]>[MS Windows Common Controls-2 6.0 (SP6)].

DTPicker
Name: dtpDOB
Format: 3 - dtpCustom
CustomFormat: dd/MM/yyy

I'm trying to set the MaxDate as 16 years 'before' the current year so that the youngest user can only be 16 years old, and the MinDate as 45 years 'before' the current year so that the oldest user can only be 45 years old.

What should I do? dtpDOB.MinValue = _______ ?

Btw, I'm using the Dropdown Calendar mode (default).

Any help would be appreciated.

Thank you!

Viewing all articles
Browse latest Browse all 21174

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>