1
Reply

How you can prevent a user not enter numeric values in textbox with Window Forms application?

Sushil Kumar

Sushil Kumar

12y
1.3k
0
Reply

    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; }