I have a problem of counting number listed in my listbox
my list box databinded by sql
I wanna to add the whole numbers on my

public string connString = "server=(local)\\SQLEXPRESS;database=PWA_RES;Integrated Security=SSPI";
        public int pul;
        private void Form1_Load(object sender, EventArgs e)
            string sql = @"select name,price from main_course ";

            SqlConnection conn = new SqlConnection(connString);
            SqlDataAdapter da = new SqlDataAdapter(sql, conn);
            da.Fill(dataSet1, "main_course");
            DataTable dt = dataSet1.Tables["main_course"];

            listBox1.DataSource = dt;
            listBox1.DisplayMember = "name";

            label1.DataBindings.Add("text", dt, "name");

         private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
          private void button3_Click(object sender, EventArgs e)
            pul = 0;
            for (int i = 0; i <= listBox5.Items.Count;i++ )
                pul =pul +  Convert.ToInt32(listBox5.Items[i].ToString()) ;



list box

Is there a specific problem with your code?