|
-
Dec 18th, 2003, 06:28 PM
#1
Thread Starter
Addicted Member
Minor Problem with Date Time Picker
I’m using a date Time Picker that does not always fill into my table,database table that is. it also only accepts values that are past the current Date, with other words “Today’s Date or future date not past Date”
I need some Code to fix this Issue, does anyone know where to start??
Thanks!!

One More!
How would I declare a text box if I want to - it with a label
VB Code:
Label1.Text - txtAmount.Text
Last edited by Rally2000; Dec 18th, 2003 at 06:32 PM.
-
Dec 20th, 2003, 04:22 AM
#2
Hyperactive Member
For the DateTimePicker, 2 of it's properties are MinDate and MaxDate
If say in the form load event you set the Minimum Value to Now, then no past date can be picked.
If say you want to restrict the maximum future date you can set that value as well.
Wasn't too sure what you meant with the other problem, did you want to add those controls dynamically at run time?
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
|