windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-980c2c5f.md
Occurs when a user clicks the Dismiss, Dismiss All, Snooze buttons on the Reminders Form , or closes the form.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
public event EventHandler<RemindersFormActionEventArgs> RemindersFormAction
Public Event RemindersFormAction As EventHandler(Of RemindersFormActionEventArgs)
The RemindersFormAction event's data class is RemindersFormActionEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| ActionType | Gets the type of the Reminders Form action. |
| AlertNotifications | Gets the list of items displayed in the Reminder Form’s list box. |
| Handled | Gets or sets whether the default behavior of the Reminder Form buttons/close form should not be performed. |
| SelectedAlertNotifications | Gets the list of items that are selected in the Reminder Form’s list box. |
| SnoozeSpan | Gets the Reminders Form ‘s snooze time span. |
Handle the RemindersFormAction event to perform a custom action when a user clicks Dismiss, Dismiss All, Snooze buttons on the Reminders Form , or closes the form.
You can use the RemindersFormActionEventArgs.AlertNotifications property to access reminder notifications that are displayed in the Reminders Form.
The following code snippet displays a message box when a user clicks any of the Reminder Form buttons:
private void schedulerControl1_RemindersFormAction(object sender, DevExpress.XtraScheduler.RemindersFormActionEventArgs e) {
MessageBox.Show($"Action {e.ActionType}; number of active reminders: {e.AlertNotifications.Count}; number of selected reminders: {e.SelectedAlertNotifications.Count}; snooze interval: {e.SnoozeSpan}");
e.Handled = checkBox1.Checked;
}
Private Sub schedulerControl1_RemindersFormAction(ByVal sender As Object, ByVal e As DevExpress.XtraScheduler.RemindersFormActionEventArgs)
MessageBox.Show($"Action {e.ActionType}; number of active reminders: {e.AlertNotifications.Count}; number of selected reminders: {e.SelectedAlertNotifications.Count}; snooze interval: {e.SnoozeSpan}")
e.Handled = checkBox1.Checked
End Sub
See Also