I dragged two calendars from the toolsbox. let say if i clicked calendar1 date as 22 july 2008 and i clicked calendar2 date as 25 july 2008. i want to calculate out the total date. is there any coding for these?

i guess u can use selectedindexchanged event of calender2 to achieve this functionality

Sorry i try to change 1 by 1 with it but nothing show the number of day.

what is needed to change in the event of calendar2?
Is any change needed in calendar1?
can i show the number of day on a label or so?
no code is required to show this?

thanx alot for the help!

just get the calender1 date and claender2 date


Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
Label5.Text = Calendar1.SelectedDate
End Sub

Protected Sub Calendar2_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar2.SelectionChanged
Label6.Text = Calendar2.SelectedDate
Label7.Text = Calendar2.SelectedDate.AddDays(-Calendar1.SelectedDate.Day)
End Sub

i try this out
it did minus the day
but the month and year was still there..
wat did i declare wrong?
im using vb2005

Is there any print button code to allow the page to print?

is u r query achieved,if so mark this thread as solved and start a new thread for u r print button.