simple textbox that limits its value to numeric (limiting the lenght and the number of decimals)
-
Do you have a working example of that somewhere? All I need is a simple textbox that limits its value to numeric (limiting the lenght and the number of decimals) kanagaraj kumar
-
Do you have a working example of that somewhere? All I need is a simple textbox that limits its value to numeric (limiting the lenght and the number of decimals) kanagaraj kumar
-
Do you have a working example of that somewhere? All I need is a simple textbox that limits its value to numeric (limiting the lenght and the number of decimals) kanagaraj kumar
Funny enough, I answered this for someone earlier today. Handle keypress and if it's not a number, a control char or the first dot, set e.Handled to true. Use char.IsNumber and char.IsControl. Remember that in some locales, a comma is the decimal point, and a dot indicates thousands. Christian Graus - Microsoft MVP - C++