private void txtNombreCliente_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Convert.ToInt32(Keys.Enter)) { var form = new FormBuscarCliente(); form.ShowDialog(); if (form.cliente != null) { CleanCliente(); SetCliente(form.cliente, form.codTipoSujeto); txtCodProd.Focus(); } } }
private void btnbuscarcliente_Click(object sender, EventArgs e) { FormBuscarCliente frm = new FormBuscarCliente(); frm.ShowDialog(); }
private void buscarToolStripMenuItem1_Click(object sender, EventArgs e) { FormBuscarCliente fb = new FormBuscarCliente(); fb.ShowDialog(); }