https://github.com/fel88/autodialog
https://github.com/fel88/autodialog
dialog winforms
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fel88/autodialog
- Owner: fel88
- License: mit
- Created: 2023-05-22T18:42:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-19T16:57:21.000Z (3 months ago)
- Last Synced: 2026-03-20T08:26:23.991Z (3 months ago)
- Topics: dialog, winforms
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoDialog
Library for creating custom dialog boxes for WinForms
Available as NuGet package https://www.nuget.org/packages/AutoDialog
## Samples
**Min/Max selector:**
```csharp
var d = DialogHelpers.StartDialog();
d.AddNumericField("min", "Minimum", 128, min: 0, max: 255, decimalPlaces: 0);
d.AddNumericField("max", "Maximum", 255, min: 0, max: 255, decimalPlaces: 0);
if (!d.ShowDialog())
return;
MessageBox.Show($"Entered values: {d.GetIntegerNumericField("min")} {d.GetIntegerNumericField("max")}");
```

---
**ComboBox selector:**
```csharp
var d = DialogHelpers.StartDialog();
d.AddOptionsField("color", "Color", new string[] { "Red", "Green", "Blue" }, "Green");
if (!d.ShowDialog())
return;
MessageBox.Show(d.GetOptionsField("color"));
```
