Interviews1 answer
How you can prevent a user not enter numeric values in textbox with Window Forms application?
1 Answer
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 ZisanPosted Apr 23, 2015, 3:27 AM EDT
