private void GridUsuarios_DoubleClick(object sender, EventArgs e) { FrmIEUsuario f1 = Application.OpenForms.OfType <FrmIEUsuario>().SingleOrDefault(); if (f1 != null) { //Donde Cells[0] = Columna 1, posición 0 //GridNoMatric.CurrentRow.Cells[0].Value.ToString(); f1.lblCod.Text = GridUsuarios.CurrentRow.Cells[0].Value.ToString(); f1.lblPass.Text = GridUsuarios.CurrentRow.Cells[2].Value.ToString(); f1.lblPosi.Text = GridUsuarios.CurrentRow.Cells[3].Value.ToString(); this.Close(); } }
private void IngresarPersonalToolStripMenuItem_Click(object sender, EventArgs e) { Login.FrmIEUsuario obj = new Login.FrmIEUsuario(); obj.Show(); }