Hello,
because I wanted to determine the startup-position and besides display the dialog in ribbon-style, I decided to use my "own" ReminderDialog, like I've seen in this forum.
Everything looks fine, but now for every appointment will be displayed an extra ReminderDialog - the original Dialog displays all appointment within the list.I tried also:
UltraCalendarInfo info = sender as UltraCalendarInfoforeach (Appointment app in info.Appointments){ reminder.AddAppointmentReminder(e.Appointment);}
... but the appointments are not listed!
Is there any possiblity to rebuild this functionality? Thank you very much for help
private void ultraCalendarInfo1_BeforeDisplayReminderDialog(object sender, CancelableAppointmentEventArgs e) { e.Cancel = true; UltraCalendarInfo info = sender as UltraCalendarInfo; ReminderDialog reminder = new ReminderDialog(info); reminder.AddAppointmentReminder(e.Appointment); #region ReminderDialog Settings reminder.StartPosition = FormStartPosition.CenterParent; reminder.Height += 20; reminder.MinimumSize = new System.Drawing.Size(reminder.Width, reminder.Height); reminder.MaximumSize = new System.Drawing.Size(reminder.Width, reminder.Height); foreach (Control control in reminder.Controls) { control.Location = new System.Drawing.Point(control.Location.X, control.Location.Y + 30); } UltraToolbarsManager toolbar = new UltraToolbarsManager(); toolbar.MdiMergeable = false; toolbar.UseOsThemes = DefaultableBoolean.False; toolbar.DockWithinContainer = reminder; toolbar.AutoGenerateKeyTips = false; toolbar.Office2007UICompatibility = false; toolbar.Ribbon.ApplicationMenu.Visible = false; toolbar.Ribbon.Visible = true; //toolbar.CreationFilter = new CreationFilter(); toolbar.Ribbon.ApplicationMenuButtonImage = null; #endregion DialogResult result = reminder.ShowDialog(); }
Hello svarna,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.