Form

GPALNumericUpDown

GPALNumericUpDown renders a text box with up and down arrows for incrementing and decrementing a numeric value. Useful when the input must be a number within a specific range. The selected value is stored as a string in the form data output. FillInFrom can set the initial value from a data source.

Examples

GPAL Fluent: High-level fluent C# API

//The numeric value selected by the user is returned as a string. Use int.Parse or decimal.Parse in your handling code to convert it to the appropriate numeric type.

// Numeric spinner in a form

GPAL.Form

.WithTitle("Set Quantity")

.WithFormControl((NumericUpDown)GPAL.NumericUpDown

.WithText("Quantity"))

.ShowDialog();

💬 Ask GPAL