Calendar control
-
Hi All i have a calendar on one form and i have a schedule on another form. When a use clicks on a date on the calendar or dobule clicks it i want it to open the Schedule form. Does any one know how to do this ? Thanks in advance
add an event handler to the double clikc on the date time form then in the event handler open the form and pass what ever parameters you want to
-
add an event handler to the double clikc on the date time form then in the event handler open the form and pass what ever parameters you want to
-
add an event handler to the double clikc on the date time form then in the event handler open the form and pass what ever parameters you want to
-
this is the generated code in designer
this.monthCalendar1.Location = new System.Drawing.Point(305, 91);
this.monthCalendar1.Name = "monthCalendar1";
this.monthCalendar1.TabIndex = 3;
this.monthCalendar1.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar1_DateChanged);and this is the method that opens up the new form
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
new Form2().ShowDialog();
} -
this is the generated code in designer
this.monthCalendar1.Location = new System.Drawing.Point(305, 91);
this.monthCalendar1.Name = "monthCalendar1";
this.monthCalendar1.TabIndex = 3;
this.monthCalendar1.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar1_DateChanged);and this is the method that opens up the new form
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
new Form2().ShowDialog();
}