Im trying to add numbers together inside a list box. First of all i put the numbers inside the listbox into an array and integers.
I now want to sum all the numbers together inside the list_box to give me a total.
The way i was going to approach this was in a loop and add each number incrementally.
Any help would be very much appreciated, as im really struggling after just starting my HND so im at a extremly very basic level with only covering some basic methods.
private void rb_sum_CheckedChanged(object sender, EventArgs e)
{
//array is needed here at this point
string boxnumbers = list_box.Text;
int[] boxnumbers1 = new int[10];
int answer;
do
{
boxnumbers1 += add.answer();
}
while ();