Results 1 to 2 of 2

Thread: Minor Problem with Date Time Picker

  1. #1

    Thread Starter
    Addicted Member Rally2000's Avatar
    Join Date
    Dec 2003
    Location
    Central USA
    Posts
    134

    Unhappy 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:
    1. Label1.Text - txtAmount.Text
    Last edited by Rally2000; Dec 18th, 2003 at 06:32 PM.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    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
  •  



Click Here to Expand Forum to Full Width