private void btnAccept_Click(object sender, EventArgs e) { //gets number of diners string numOfDiners = cmnOptions.SelectedItem.ToString(); string[] diners = numOfDiners.Split(' '); //Form transition passing number of diners frmTableSelection tbs = new frmTableSelection(diners[0]); tbs.Show(); this.Hide(); }