Back to Devexpress

ShowFormEventArgs.Handled Property

windowsforms-devexpress-dot-xtrascheduler-dot-showformeventargs-2c8ba65d.md

latest5.4 KB
Original Source

ShowFormEventArgs.Handled Property

Gets or sets whether an event was handled, if it was handled the default actions are not required.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
Boolean

true if it was handled and the default dialog doesn’t need to be shown; otherwise, false.

|

Remarks

If the event parameter’s Handled property is set to true within a handler, then the default dialog will not be shown. Otherwise, the default dialog will be shown in any case after any custom actions present have been performed within the event handler.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Handled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/Form1.cs#L24

csharp
e.DialogResult = form.ShowDialog();
    e.Handled = true;
}

winforms-scheduler-create-appointment-edit-form-with-custom-fields/CS/SimpleCustomFields/Form1.cs#L57

csharp
e.DialogResult = form.ShowDialog();
    e.Handled = true;
} finally {

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/Form1.cs#L40

csharp
e.DialogResult = form.ShowDialog();
    e.Handled = true;
}

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L80

csharp
e.DialogResult = myForm.ShowDialog();
    e.Handled = true;
} finally {

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/Form1.cs#L212

csharp
schedulerControl1.Refresh();
    e.Handled = true;
}

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/Form1.vb#L18

vb
e.DialogResult = form.ShowDialog
    e.Handled = True
Finally

winforms-scheduler-create-appointment-edit-form-with-custom-fields/VB/SimpleCustomFields/Form1.vb#L57

vb
e.DialogResult = form.ShowDialog()
    e.Handled = True
Finally

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/Form1.vb#L42

vb
e.DialogResult = form.ShowDialog()
    e.Handled = True
Finally

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L82

vb
e.DialogResult = myForm.ShowDialog()
    e.Handled = True
Finally

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/Form1.vb#L191

vb
schedulerControl1.Refresh()
    e.Handled = True
Finally

See Also

DialogResult

ShowFormEventArgs Class

ShowFormEventArgs Members

DevExpress.XtraScheduler Namespace