private void NuevoUsuario() { frmNuevoUsuario frm = new frmNuevoUsuario(this); frm.TopLevel = false; frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frm.StartPosition = FormStartPosition.Manual; frm.Size = new System.Drawing.Size(548, 450); frm.Location = new Point(0, 0); pnlForms.Controls.Clear(); pnlForms.Controls.Add(frm); frm.Show(); this.Size = new Size(frm.Width, frm.Height + 22); this.Location = new Point((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2, (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2); pnlForms.Height = frm.Height; pnlForms.Location = new Point(0, 22); }
public frmCapturarHuella(frmNuevoUsuario frm) { InitializeComponent(); frmNU = frm; }
private void btnNuevo_Click(object sender, EventArgs e) { frmNuevoUsuario fm = new frmNuevoUsuario(); fm.ShowDialog(); }