Hi,
I want to make a custom appointment dialog form which suits our project requirements. I dont want to use the built-in appointment dialog provided.
Please let me know how to do that.
Thanks
Panna
You have to subscribe to the CalendarInfo's BeforeDisplayAppoinmentDialog event:
protected override void OnLoad(EventArgs e) { ... calendarInfoControl.BeforeDisplayAppointmentDialog += OnCalendarInfoBeforeDisplayAppoinmentDialog; ... }
In the event handler you should cancel the event and show your own appointment dialog:
private void OnCalendarInfoBeforeDisplayAppoinmentDialog( object sender, DisplayAppointmentDialogEventArgs e) { e.Cancel = true; MyAppointmentDialog appointmentDialog = new MyAppointmentDialog(); appointmentDialog.Show(); }
Hope this helps, Emanuel
Thanks for ur quick reply...
Its working now...
Thanks again,