Results 1 to 3 of 3

Thread: VB.NET Help: MonthCalendar

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    VB.NET Help: MonthCalendar

    Say if i choosen the list of dates in the MonthCalendar..

    then i save the date...

    but how to view the date choosen being colour inside the monthCalendar

    Thanks

  2. #2
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    If I understand you correctly, this should work:
    VB Code:
    1. Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
    2.         Me.MonthCalendar1.AddBoldedDate(e.Start)
    3.     End Sub
    Whadayamean it doesn't work....
    It works fine on my machine!

  3. #3

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230
    I am not sure how to use yr code...

    Suppose when i click on the View button, it will read the xml tag from the xml file and display the date in the textbox..

    But now at the same time, the date that is extract from the xml files will also be display and coloured inside the monthCalendar
    Code:
    Private Sub btnView_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnView.Click
    Public Sub Read()
    
    Dim oldCollection As dData = New dData
    Dim old As XmlSerializer = New XmlSerializer(GetType(dData))
    Dim reader As XmlTextReader = New XmlTextReader("..\\Tryingxml")
    oldCollection = CType(old.Deserialize(reader), dData)
    reader.Close() 
    txtDate.Text = oldCollection.ActivityDate 
    End Sub
    but with yr code, how to implements it to my code...
    I want both the textbox will display the date and the MonthCalendar date will be circle according to the xml tags...

    Thanks
    Last edited by toytoy; Dec 3rd, 2004 at 08:14 AM.

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