textbox keypress event help
-
i want to write code for wpf textbox control keypress event.i want to enter data this textbox numbers only.this code correct for winforms private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (char.IsLetter(e.KeyChar) == true) { e.Handled = true; } } how to write this code for wpf textbox control....
-
i want to write code for wpf textbox control keypress event.i want to enter data this textbox numbers only.this code correct for winforms private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (char.IsLetter(e.KeyChar) == true) { e.Handled = true; } } how to write this code for wpf textbox control....
You've already posted this question once. Please don't repost just to bump your question to the top - it's inconsiderate of others.
Deja View - the feeling that you've seen this post before.