Back to Devexpress

ShowFormEventArgs.DialogResult Property

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

latest5.6 KB
Original Source

ShowFormEventArgs.DialogResult Property

Gets or sets the return value of a dialog box.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public DialogResult DialogResult { get; set; }
vb
Public Property DialogResult As DialogResult

Property Value

TypeDescription
DialogResult

A DialogResult enumeration value that specifies the value that is returned by the dialog box.

|

Remarks

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

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

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

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

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

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

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

csharp
myForm.LookAndFeel.ParentLookAndFeel = this.LookAndFeel.ParentLookAndFeel;
e.DialogResult = myForm.ShowDialog();
e.Handled = true;

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

csharp
e.DialogResult = myForm.ShowDialog();
schedulerControl1.Refresh();

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

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

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

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

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

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

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

vb
myForm.LookAndFeel.ParentLookAndFeel = Me.LookAndFeel.ParentLookAndFeel
e.DialogResult = myForm.ShowDialog()
e.Handled = True

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

vb
e.DialogResult = myForm.ShowDialog()
schedulerControl1.Refresh()

See Also

Handled

ShowFormEventArgs Class

ShowFormEventArgs Members

DevExpress.XtraScheduler Namespace