CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: DateTimePicker

  1. #1
    Join Date
    Jul 2006
    Posts
    45

    Smile DateTimePicker

    I have a DateTimePicker in my windows form and i want that, it will not show previous months depending upon the system date and will show preceding three month only (90 days). Can it be done in VB.NET 2002, if so how?

  2. #2
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: DateTimePicker

    u have to set minDate property
    Code:
     Me.DateTimePicker1.MinDate = Today.AddMonths(-3)

  3. #3
    Join Date
    Jul 2006
    Posts
    45

    Thumbs up Re: DateTimePicker

    Thanks for the reply but what to do to stop DateTimePicker showing the previous months. I think u must be having the solution if so then please help me out.

  4. #4
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: DateTimePicker

    rajibdey2005 i have set the minDate property of datetimepicker control and the user can move only three months previous.

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

Featured