|
-
Sep 13th, 2004, 08:36 PM
#1
Thread Starter
Addicted Member
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
-
Sep 14th, 2004, 07:15 AM
#2
Hyperactive Member
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
Whadayamean it doesn't work....
It works fine on my machine!

-
Sep 16th, 2004, 01:57 AM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|