Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    MonthCalendar (VS.Net 2003)

    Is there a way to clear the selection on a MonthCalendar? I have the user select a date or a range of dates. I then add the date(s) to a list and then bold the dates in the list on the calendar. Finally, I would like to clear the user's selection. The best that I can do is set the selection to the start or end date. TIA --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MonthCalendar (VS.Net 2003)

    Are you using a Web application or Windows?

    EDIT: Sorry - After looking at it, I realized that MonthCalendar refers to the Winforms control (System.Windows.Forms.MonthCalendar).

    There doesn't appear to be any way to clear the selected date. Your best bet might be to set it to the default (Today's date):

    monthCalendar1.SelectionStart = DateTime.Now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •