private void dtUsers_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { CustomersForm frm = (CustomersForm)Application.OpenForms["CustomersForm"]; var row = dtUsers.CurrentRow; frm.cmbUser.Text = row.Cells[1].Value.ToString(); this.Close(); }
private void btnCustomer_Click(object sender, EventArgs e) { CustomersForm frm = new CustomersForm(); frm.Show(); }