Looking for List Box help, please!

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 1
Reputation: DonCollins is an unknown quantity at this point 
Solved Threads: 0
DonCollins DonCollins is offline Offline
Newbie Poster

Looking for List Box help, please!

 
0
  #1
Nov 16th, 2004
Hi All,

First time poster, so please go easy on me!

I am taking a VB.net class at Cleveland State and I have run into some trouble. I am working on a project that requires the user to input test scores via a text box and button into a list box, minimum possible score on a test (via input box, most likley, if I ever get to that part!), maximum possible score on a test, allow the user to modify or delete these scores at a later date, and then perform calculations returning the mean, variance, standard deviation, high score, low score, and score range.

I can get the calculations just fine, display the information after it is calculated..these parts are very simple to me, however I am running into one major snag before I can even go into calculations and the like...I can't for the life of me figure out how to, first, edit a number that has already been entered into a list box. I can take the number out of the box and place it back into a text box, but I can't get the code (simple as it may be) to replace that number. Second, I can't figure out how to use the contents of the list box in calculations. How do I go about gathering up all the information entered into the list box (test score, test minimum grade, test maximum grade) and put them into useable forms so that I can get my mean and class score.

My interface layout is like this:

I have a text box to enter your score followed by three buttons: Add Score, Edit Score, Delete Score. Under that is a list box where the scores are to be stored. I plan on displaying the calculations each in a seperate text box preceded by its appropriate title in a label, which would be displayed after clicking another button, Calculate.

I can provide what code I have done to anyone who may be willing to give me some tips. I am not asking for you to do this program for me, just looking for a couple lines of code that I can't seem to figure out!!

Thanks in advance for your help!

Don
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 10
Reputation: weazel is an unknown quantity at this point 
Solved Threads: 0
weazel weazel is offline Offline
Newbie Poster

Re: Looking for List Box help, please!

 
0
  #2
Dec 31st, 2004
show what code u have alrdy
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 4
Reputation: Lahlahliam is an unknown quantity at this point 
Solved Threads: 0
Lahlahliam Lahlahliam is offline Offline
Newbie Poster

Re: Looking for List Box help, please!

 
0
  #3
Jan 5th, 2009
i know that if you have say a textbox and a listbox and 1 button
then they type summit in textbox1 and it displays in listbox1 when they press down on button1.

go to button1 code :

listbox1.items.add(textbox1.text)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Looking for List Box help, please!

 
0
  #4
Jan 6th, 2009
Seriously Lahlahliam? He posted this in 2004.....
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 4
Reputation: Lahlahliam is an unknown quantity at this point 
Solved Threads: 0
Lahlahliam Lahlahliam is offline Offline
Newbie Poster

Re: Looking for List Box help, please!

 
0
  #5
Jan 10th, 2009
Originally Posted by Comatose View Post
Seriously Lahlahliam? He posted this in 2004.....
Yeh problem? my name if u wanna know is Liam and i am from the UK. birmingham plz tell me if there is somthing wrong cus there seems to be with the under inflection on the "?". wierd ****ing yamkee. TOSER!!!!!!!!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Looking for List Box help, please!

 
0
  #6
Jan 10th, 2009
Yeah Seriously..... This thread is like 5 years old, and you responded to it. If you bother to have a look at the forum, you'd see that responding to threads more than 3 months old is seriously frowned upon... ass.
Last edited by Comatose; Jan 10th, 2009 at 8:51 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC