It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Counting Program,

Moderator: dafunkymunky

Counting Program,

Postby xp4268 on Sun Feb 07, 2010 8:09 pm

Create a program that allows the user to enter a value into a TextBox and then produces a count, a running total and a running average each time a CommandButton is clicked. The count, running total and running average should be displayed in three separate Labels. Example: the user types ‘10’ into the TextBox and then clicks the CommandButton. The Labels display 1, 10 and 10 respectively. The user clicks the CommandButton a second time. The Labels now display 2, 20, 10. The user replaces the ‘10’ with a ‘7’ and clicks the CommandButton a third time. The Labels now display 3, 27, 9. How can you avoid an error in case the user clicks the CommandButton BEFORE putting any data into the TextBox?
xp4268
 
Posts: 2
Joined: Sun Feb 07, 2010 8:04 pm

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests