Click here to Skip to main content
11,503,113 members (52,467 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Key press event in WPF

, 17 May 2010 CPOL 54.7K 1
Hi..I want user to enter only numeric values in textbox.I got this code:private void txtType1_KeyPress(object sender, KeyPressEventArgs e){ int isNumber = 0; e.Handled = !int.TryParse(e.KeyChar.ToString(), out isNumber);}but i am not getting textbox_KeyPress...



Compare Revision Minor Date Status Editor
2 - publicly available No 18-May-10 2:23 Available Sandeep Mewara
1 No 18-May-10 2:15 Composing niravsahayata


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 18 May 2010
Article Copyright 2010 by niravsahayata
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid