Click here to Skip to main content
12,252,860 members (63,402 online)
Click here to Skip to main content

Tagged as


1 bookmarked

Key press event in WPF

, 17 May 2010 CPOL
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

You may also be interested in...

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