Are there any examples available that show the use of NumericMaskedTextBox?
I would be interested in limiting the value range that can be set in the textbox.
For example, only accept values that are between 0 and 1.
You would implement the event control:
Textbox.TextChanged += text_TextChanged;
And then the function:
private void text_TextChanged(object sender, EventArgs e)
{
var box = (NumericMaskedTextBox<double>)sender;
if (box.Value < 0)
{
box.Value = 0;
}
if (box.Value >1)
{
box.Value = 1;
}
}
This means that once you user enters a value less than or greater than your limits, it will be changed to be within the limits.