Hi
In a form I want to have a calander. When the application runs the calander is displayed. Here I will select a date and upon selecting the date I will perform some operation. But my problem is the calander is not allowing me to move forward or backward. I mean when the calander is displayed it shows the current month and current date(June month 13th(saturday) ), but when I click the '>' or '<' button to select a date in July or August or May it is taking the current month's current date i.e., 13 there by not allowing me to select the date I wanted. How to overcome this
thanks
Loading
Kirtan PatelPosted Jun 13, 2009, 8:25 AM
this.Hide() ;
From the Code
Example Code Look here I have coded
Download Project Files
sachi vasishtaPosted Jun 13, 2009, 7:03 AM
Kirtan the thing is when the calander is displayed it is displayed as below
< June 2009 >
sun mon tue wed thu fri sat
1 2 3 4 5 6 7
..........................................
Here when the calander is displayed as shown in the above figure it should allow me to click < or > button to select previous or next month and there I will select the date I want, but it is not allowing me to do that.
Kirtan for my application I have written the following code. Here I have a form in which I have the monthcalander control. And after I select a particular date in a particular month I will do the operation as written in the braces. But the calander is not allowing me to click < or > button to change the month and select the date I wanted.
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e) // month calander to schedule a appointment
{
form7.textBox3.Text = monthCalendar1.SelectionEnd.ToShortDateString(); // assigning the date into textbox of form7
this.Hide();
}
Thanks
Kirtan PatelPosted Jun 13, 2009, 5:15 AM