Results 1 to 2 of 2

Thread: DTPicker Question

  1. #1
    kirkf
    Guest

    DTPicker Question

    Is there a way to clear the maxdate and mindate of a DTPicker during an application?

    For example

    If you wanted the DTPicker to only be valid From November 1 to November 30 during one portion of your program

    And then during another you only wanted it to be valid from December 1 to December 30 during another portion


    If I only want to use one DTPicker, how would I do this?

  2. #2
    Hyperactive Member Jason Badon's Avatar
    Join Date
    Feb 2001
    Location
    Colorado
    Posts
    329
    this will do it

    VB Code:
    1. Private Sub Form_Load()
    2. DTPicker1.MaxDate = "12/30/01"
    3. DTPicker1.MinDate = "12/01/01"
    4. End Sub

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