1
Reply

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

Sushil Kumar

Sushil Kumar

Oct 15, 2012
1.2k
0

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

    Safayat Zisan
    April 23, 2015
    0