how to fix this please help me how to get the some of the items in listbox and be put in the textbox

  • Thread starter Thread starter denver_kun
  • Start date Start date
D

denver_kun

Guest
  • String headers = "{0, -20}{1, -30}{2, -20}{3, -20}";
private void button4_Click(object sender, EventArgs e)
{
int sum = 0;
for (int i = 0; i < listBox1.Items.Count; i++)
{
sum += Convert.ToInt32(listBox1.Items);
}
textBox3.Text = sum;

}

Continue reading...
 
Back
Top