Hello Sorry its a simple question, but would appreciate if someone can guide me with the code. I have say 50 textboxes in my Winform. All should allow only numeric values and that too between 1-100 only. How should I ensure this validation?
My thoughts was using e.Keychar in keypress event using Ascii values to restrict users to type only numerics. Also, probably I can ensure this validation in Set in the property? But I don't know if I am correct and also don't know right code. Please help me.