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
Printable View
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
If I understand you correctly, this should work:
VB Code:
Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged Me.MonthCalendar1.AddBoldedDate(e.Start) End Sub
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
but with yr code, how to implements it to my code...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
I want both the textbox will display the date and the MonthCalendar date will be circle according to the xml tags...
Thanks