Wrong answer. The right to left property doest have anything to do with the entered values and the allow only numeric values propertie doest exist in visual studio 2005
I just wanted to confirm that you shouldn't use RightToLeft property in the TB if you need to right-align your digits. This property is intended for right-to-left languages, like Arabic, Hebrew, Urdu and Farsi.
You want it to LOOK the same like the textbox in calculator - then you need RightToLeft property. Of course VS doesn't have "allow numeric values" property, you have to validate entered values yourself.
So if you have VS 2005, so it's better you use MaskedTextBox control and properly set it's Mask-property.
Numeric textbox
Dustin Walker
HyperManiac
MartinBrasil
I just wanted to confirm that you shouldn't use RightToLeft property in the TB if you need to right-align your digits.
This property is intended for right-to-left languages, like Arabic, Hebrew, Urdu and Farsi.
Aaron Skonnard
Register an "Validating" event on TextBox and check in the eventHandler if the value entered is a double. If no, set eventarg "cancel" on true
fyllekai
Niklas Borson
kevikevtmc
Of course VS doesn't have "allow numeric values" property, you have to validate entered values yourself.
So if you have VS 2005, so it's better you use MaskedTextBox control and properly set it's Mask-property.