| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function ShowDialog() As DialogResult | |
| C# | |
|---|---|
public DialogResult ShowDialog() | |
Return Value
One of the System.Windows.Forms.DialogResult values.| Exception | Description |
|---|---|
| System.InvalidOperationException | The form being shown is already visible. -or- The form being shown is disabled. -or- The form being shown is not a top-level window. -or- The form being shown as a dialog box is already a modal form. -or- The current process is not running in user interactive mode (for more information, see System.Windows.Forms.SystemInformation.UserInteractive). |