Click here to Skip to main content
12,818,508 members (29,077 online)
Click here to Skip to main content

Tagged as

Stats

73.1K views
1 bookmarked
Posted 17 May 2010

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...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 17-May-10 21:23 Available Sandeep Mewara
1 No 17-May-10 21: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

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 18 May 2010
Article Copyright 2010 by niravsahayata
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid