Create a property (or method) on FormOptions
, say GetMyResult
:
using (FormOptions formOptions = new FormOptions())
{
formOptions.ShowDialog();
string result = formOptions.GetMyResult;
// do what ever with result...
}
More Related Contents:
- C#, Winform: How to pass information from one form to another [duplicate]
- DPI Awareness – Unaware in one Release, System Aware in the Other [duplicate]
- How can I make a .NET Windows Forms application that only runs in the System Tray?
- Cross-thread operation not valid [duplicate]
- How to start WinForm app minimized to tray?
- Centering controls within a form in .NET (Winforms)?
- How can I customize the system menu of a Windows Form?
- Get the value for a listbox item by index
- Detect Windows font size (100%, 125%, and 150%)
- Show Transparent Loading Spinner above other Controls
- How to Disable Alt + F4 closing form?
- How to check if a user belongs to an AD group?
- Show row number in row header of a DataGridView
- How to create a C# Winforms Control that hovers
- Adding Text to DataGridView Row Header
- How do I implement a progress bar in C#?
- C# Windows Forms Application – Updating GUI from another thread AND class?
- UserControl with header and content – Allow dropping controls in content panel and Prevent dropping controls in header at design time
- Add vertical scroll bar to panel
- Changing the color of the title bar in WinForm
- How to capture mouse wheel on panel?
- Force to close MessageBox programmatically
- How to eliminate flicker in Windows.Forms custom control when scrolling?
- Change language at runtime in C# winform
- ComboBox placeholder text (hint, cue banner, default text)
- How can I detect when Windows 10 enters tablet mode in a Windows Forms application?
- How to get the screenshot of the form
- RichTextBox Newline Conversion?
- How to get DPI in C# .NET?
- Winform form closed event