private void servicioToolStripMenuItem_Click(object sender, EventArgs e) { FrmBusquedaServicio MiBusquedaServicio = new FrmBusquedaServicio(); MiBusquedaServicio.MdiParent = this; MiBusquedaServicio.Show(); }
private void btnServicio_Click(object sender, EventArgs e) { FrmBusquedaServicio frm = new FrmBusquedaServicio(); frm.ShowDialog(); txtIdServicio.Text = Convert.ToString(frm.dgvSer.CurrentRow.Cells[0].Value); txtNombreSer.Text = Convert.ToString(frm.dgvSer.CurrentRow.Cells[1].Value); txtPrecio.Text = Convert.ToString(frm.dgvSer.CurrentRow.Cells[2].Value); this.Show(); }