it's easy to allow minus signs.
maybe i can figure like this
protected override void OnKeyPress( KeyPressEventArgs e )
{
base.OnKeyPress( e );
string negativeS = NumberFormatInfo.CurrentInfo.NegativeSign;
e.Handled = true;
if( !char.IsDigit( e.KeyChar ) && e.KeyChar != nfi.NumberDecimalSeparator[0] && e.Keychar.equals=negativeS)
{
return;
}
.But there is a problem at
private bool SetFormattedText( StringBuilder txt )
it's make an error if we type the minus sign.
how about u try to allow the minus sign and try to recompile it....
and u will see my problem..