I am looking for some sort of built in tool or control that will allow me to only allow entry of a number and restrict the number between a maximum and minimum value. In addition to being a VB programmer(but not very experienced) I also program HMI’s(Human Machine Interfaces) which connect to PLC’s(programmable logic controller). With the HMI interface I can easily add a numeric entry tool to the interface which allows me to only allow decimal or integer numbers to be entered, the number of decimal places and restrict the entry between a maximum and minimum value. The max min values can be manually entered or refer to another variable. The control does all that work automatically. I do have some VB code that I use to restrict text box entry to only numbers and one decimal point. I have to manually check the max and mins. I typically have a dozens of numeric entries that require this and the vb code gets quite messy to deal with individual max/min checking and message boxes to inform the user that the entry exceeds the max min valaues. Any advice or programming tools or some kind of purchased tools for vb to simplify this would be appreciated.
Thanks, Chris