How you can prevent a user not enter numeric values in textbox with Window Forms application?
Sushil Kumar
Click TextBox and go to the event properties. Scroll down, you will see, "IsKeyDown" property. Double click or enter into it. Then give your logic there. ex: if(e.KeyCode==Keys.D1) { TextBox1.text = string.empty; }