windowsforms-devexpress-dot-xtrascheduler-dot-showformeventargs.md
Gets or sets the return value of a dialog box.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
public DialogResult DialogResult { get; set; }
Public Property DialogResult As DialogResult
| Type | Description |
|---|---|
| DialogResult |
A DialogResult enumeration value that specifies the value that is returned by the dialog box.
|
Use the DialogResult property with the ShowFormEventArgs.Handled parameter set to true , to change the return value of the dialog box.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DialogResult 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#L23
try {
e.DialogResult = form.ShowDialog();
e.Handled = true;
try {
e.DialogResult = form.ShowDialog();
e.Handled = true;
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/Form1.cs#L39
try {
e.DialogResult = form.ShowDialog();
e.Handled = true;
winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L79
myForm.LookAndFeel.ParentLookAndFeel = this.LookAndFeel.ParentLookAndFeel;
e.DialogResult = myForm.ShowDialog();
e.Handled = true;
winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/Form1.cs#L210
e.DialogResult = myForm.ShowDialog();
schedulerControl1.Refresh();
winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/Form1.vb#L17
Try
e.DialogResult = form.ShowDialog
e.Handled = True
Try
e.DialogResult = form.ShowDialog()
e.Handled = True
winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/Form1.vb#L41
Try
e.DialogResult = form.ShowDialog()
e.Handled = True
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L81
myForm.LookAndFeel.ParentLookAndFeel = Me.LookAndFeel.ParentLookAndFeel
e.DialogResult = myForm.ShowDialog()
e.Handled = True
winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/Form1.vb#L189
e.DialogResult = myForm.ShowDialog()
schedulerControl1.Refresh()
See Also