private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { label2.Text = "Result?"; Service1.Service1Client client = new Service1.Service1Client(); string name = comboBox1.Text; DataTable dt = client.GetProduct(name); foreach (DataRow row in dt.Rows) { string Pname = row["Product_title"].ToString(); string Ptype = row["Product_type"].ToString(); string Pdes = row["Product_descripation"].ToString(); textBox2.Text = Pname; textBox1.Text = Ptype; richTextBox1.Text = Pdes; } }