Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

Key press event in WPF

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

Revisions


  

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

License

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

Share

About the Author

No Biography provided

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