|
-
Nov 14th, 2000, 10:39 PM
#1
Thread Starter
Junior Member
I have several questions related to an exercise where there are two text boxes where a user enters a number in each and clicks on a command button to sum all the numbers in between including the two entered then which places the result in a label box.
1) How do I code to perform the summation when the user presses the enter key in either text box?
2) How do I display the result in red for negative numbers and black for zero or positive numbers?
3) How do I restrict the application to handle entries from -32768 thru 32767 referring to these constants using constant identifiers (e.g. MIN_VALUE and MAX_VALUE) and also restirct the user to enter no more than 6 characters?
4) How do I make the summation work if the first value entered is more than the second (I.e. sum from the second value to the first)?
Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|