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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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