As Bob mentioned, you should set Form.DialogResult
accordingly on your modal form.
More Related Contents:
- How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
- Controlling Volume Mixer
- Get File Icon used by Shell
- How to find overlapping controls that I added to form?
- Winforms: Application.Exit vs Environment.Exit vs Form.Close
- Select either a file or folder from the same dialog in .NET
- Get the SourceControl of a DropDownMenu
- Save Settings in VB.Net or C#
- center MessageBox in parent form [duplicate]
- How to write Unicode characters to the console?
- Question about terminating a thread cleanly in .NET
- Make an Installation program for C# applications and include .NET Framework installer into the setup
- Windows Forms Splash Screen – Show a form while loading main form
- TabControl with Close and Add Button
- Application.Exit
- How to flatten nested objects with linq expression
- How can a Label control display Japanese characters properly when the Font used doesn’t support this language?
- Is String a primitive type?
- Install to same path when upgrading application
- BinaryWriter Endian issue
- Invalid URI: The format of the URI could not be determined
- Change the borderColor of the TextBox
- Call and consume Web API in winform using C#.net
- Drawing on top of controls inside a panel (C# WinForms)
- How do you resize a form to fit its content automatically?
- Does the System.Windows.Forms.Timer run on a different thread than the UI?
- How to refresh DataSource of a ListBox
- Populate TreeView with file system directory structure
- How to append text to RichTextBox without scrolling and losing selection?
- ProgressBar is slow in Windows Forms