private void btn_Read_Click(object sender, EventArgs e) { try { listBox1.Items.Clear(); string[] lista; using (ServiceReference1.IfuncionesClient cliente = new ServiceReference1.IfuncionesClient()) { lista = cliente.leer(); { for (int i = 0; i < lista.Count <string>(); i = i + 5) { listBox1.Items.Add(lista[i].ToString() + " " + lista[i + 1].ToString() + " " + lista[i + 2].ToString() + " " + lista[i + 3].ToString() + " " + lista[i + 4].ToString() + " "); } } } } catch { MessageBox.Show("No se ha registrado ningun producto"); } }