Higlight selected date in VB.NET MonthCalender

Posted by fireBand on Stack Overflow See other posts from Stack Overflow or by fireBand
Published on 2010-04-19T21:11:15Z Indexed on 2010/04/19 21:33 UTC
Read the original article Hit count: 278

Filed under:

Hi , I am using MonthCalender control in vb.net to select a date. I am able to save the selected date to DB and also retrieve and bold the previous selected date. But even though date is bolded it is not displayed when the form loads. It still highlights today's date. What Do i do to highlight the previous chosen dates. Also i want to disable choosing date range.

I have my code below.

'StartDate is a datetime object

  'check if there is any date chosen
  If Not IsNothing(StartDate) Then
    Me.mcSelectedDate.AddAnnuallyBoldedDate(StartDate)
    Me.mcSelectedDate.UpdateBoldedDates()
  End If

© Stack Overflow or respective owner

Related posts about vb.net