Hi nvx,
The only way it appears you can catch the user deleting the content is by
inheriting NumericUpDown and override for instance the Text property
public class MyNumeric : NumericUpDown
{
public override string Text
{
get
{
if (base.Text == "")
base.Text = Minimum.ToString();
return base.Text;
}
set
{
base.Text = value;
}
}
}
Interestingly, the setter will never get notified of the empty string so you
need to catch it in the getter.

Signature
Happy Coding!
Morten Wennevik [C# MVP]
> Hello,
> I would like to get the edited value (an equivalent to the
[quoted text clipped - 9 lines]
> Best regards,
> nvx
nvx - 24 Jan 2008 10:28 GMT
Dear Morten,
thank you for the info. I was afraid it has to be done this
(inconvenient) way, but it is better to be sure than try the easy way
with no result... ;)
Best regards,
nvx
On 24 Led, 07:41, Morten Wennevik [C# MVP]
<MortenWenne...@hotmail.com> wrote:
> Hi nvx,
>
[quoted text clipped - 39 lines]
> > Best regards,
> > nvx