Hi!
I seek to select an appointment by code but I do not arrive there
I try this :
myAppointment.Selected = true; (but the property keep false)
and :
CalendarInfo.SelectedAppointments.Add(myAppointments);
Thanks for help me!
Fab
PS : sorry for my english
I was not able to reproduce the behavior you describe here with a simple test. If you can post a brief code sample that demonstrates the problem, we can take a look and try to help.
Yes i must describe more..
I create a UserControl where when you do a right clic on an Appointement i get the Appointment (with the mouse location) and, in the event, i need change the Selected Appointement
private void uc_monthViewer_MouseDown(object sender, MouseEventArgs e)
{
Appointment oAppointement = uc_monthViewer.GetAppointmentFromPoint(e.Location);
if (oAppointement != null && e.Button == MouseButtons.Right)
_oCalendarInfo.SelectedAppointments.Clear();
_oCalendarInfo.SelectedAppointments.Add(oAppointement);
// or this : _oAppointement.Selected = true;
}
Thanks u for your help