c# - Need a numeric only windows control TextBox -


this question has answer here:

i creating old-school dialog in c# using system.windows.controls.textbox . there easy way of limiting text input in box numeric only?

thanks!

just implement onkeyup event handler , if key pressed not character.isdigit clear it.

http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.onkeyup(vs.95).aspx


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

xslt - Umbraco and EXSLT sets do not work -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -