G
Guest
Hello,
I have a data entry windows form. One of the text boxes allows the user to
enter a string. I need this text box to only allow users to type in a
negative integer value (e.g. -1, -2, -3).
Current approach:
I want to validate the user's entry during the TextChanged() event. During
the validation, I need a function that will parse the string and see if it is
a negative integer. Does anyone have suggestions on the best way to do this?
or alternative approaches from what I have entered?
I have a data entry windows form. One of the text boxes allows the user to
enter a string. I need this text box to only allow users to type in a
negative integer value (e.g. -1, -2, -3).
Current approach:
I want to validate the user's entry during the TextChanged() event. During
the validation, I need a function that will parse the string and see if it is
a negative integer. Does anyone have suggestions on the best way to do this?
or alternative approaches from what I have entered?