This is simple but I'm not sure how to do it:
The idea is to make a textbox inside a form in which if I enter a number this appears as '?' in the textbox.
My idea is to do it with the KeyPress event:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 59) && e.KeyChar != 8)
{
}
}
Could someone tell me what to put in the "if" for this to work?