New to Visual Basic
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
Use the TryParse()[^] method to check the string from the text box and take action accordingly.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
Further to what Richard has said take a look at the following textbox events; textchange, validation or even the lost focus event. You can use these events to automatically trigger your checking code without the user having to do anything.
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.
-
Hi, :-\ The scenerio: I would like the user to enter data into a text box, before clicking continue. If the data is numeric then the program should assign it to a variable and continue as it should, but if the data is not numeric, the program should respond with a message alerting the user of this mistake. The question: Is there anyone who can either help me directly or atleast point me in the right direction to work it out myself? Any assistance in this matter would be greatly appreciated.