HI:)
i have tried for several hours to make my textbox accept negative numbers but i couldn't solve the problem so i'm hoping u can help me with this.I got here an example of my code:
private void textBox76_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
textBox76.MaxLength = 1;
}
My text box accepts only numbers from 0 to 9..so i was wondering how i can make it accept negative numbers to.Thanks for your advices.