int total = 0;
for(int i = 0; i < listbox1.items.count; i++)
{
total += total = convert.Toint32(listbox1.items[i]);
}
label1.text = convert.tostring(total);
}
Dim total As nt = 0
For i As Integer = 0 To listbox1.items.count - 1
total += InlineAssignHelper(total, convert.Toint32(listbox1.items(i)))
Next
label1.text = convert.tostring(total)