I have a listbox filled with integers that can be changed and added to:
I just need a textbox that keeps a running total of the integers in the listbox.
Thanks
Running Total of a ListBox
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

PJ MartinsRank #2,548 · 548 reputationPosted Jun 25, 2010, 6:30 AM EDT
Dim itemInt As Integer
Dim total As Integer = 0
For Each item As Object In ListBox1.Items
If Integer.TryParse(item.ToString(), itemInt) Then
total += itemInt
End If
Next
TextBox1.Text = total.ToString()
David6 reputationPosted Jun 25, 2010, 11:38 AM EDT