Results 1 to 3 of 3

Thread: Change the selected date of a MonthCalendar?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    67

    Change the selected date of a MonthCalendar?

    I have searched on Google and MSDN for a way to change the currently selected date of a month calendar through code instead of the user clicking but I can't find a way to do it, does anybody know how?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Change the selected date of a MonthCalendar?

    How do you get the selection in code? That's how you set it too. Assign the date you want to the SelectionStart property and then (I'm not sure whether this is required or not) assign the same date to the SelectionEnd.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    67

    Re: Change the selected date of a MonthCalendar?

    Oh yes I don't know why that didn't occur to me, I guess I was just thinking you could only read the selection that way. Thanks

Tags for this Thread

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