private void btn_regCliente_Click(object sender, EventArgs e) { Form8RegCliente regCliente = new Form8RegCliente(); regCliente.Owner = this; regCliente.ShowDialog(); }
private void btn_regCliente_Click(object sender, EventArgs e) { Form8RegCliente regCliente = new Form8RegCliente(); regCliente.Owner = this; if (regCliente.ShowDialog() == DialogResult.OK) { textBox2.Text = regCliente.IdCliente.ToString(); } }
private void btn_RegCliente_Click(object sender, EventArgs e) { var RegCliente = new Form8RegCliente(); RegCliente.ShowDialog(); }