I should have mentioned that my string is not in normal display though. The input is in hex format. (So I want the limitation of 4 bytes like FFFF FFFF). This means the number constant now should be 4.
That statement is silly. A numeric control can be set for hex display. You example
But my control must be in hex format. So numeric control won't be of help to me.
You misunderstood my question.
In your example user inputs decimal number and indicator displays in hex format which is of course easy and is silly question to ask.
My requirement is : User must input in hex string format. And my program must not allow the user to input more than 4 bytes.
Thanks for helps.