I have the folllowing code for only numbers in the texbox, but would also like to include only numeric operations too (+,-, *, etc). How would you code for this please.
private void txtCalculation_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
}