private void home_Load(object sender, EventArgs e) { this.inicial = new inicial(); this.inicial.TopLevel = false; this.Controls.Add(this.inicial); this.inicial.Location = new Point(136, 97); this.inicial.Visible = true; }
private void btnInicio_Click(object sender, EventArgs e) { this.paciente.Close(); this.medico.Close(); this.consulta.Close(); this.relatorio.Close(); var frmmenu = Application.OpenForms["inicial"]; if (frmmenu == null) { this.inicial = new inicial(); this.inicial.TopLevel = false; this.Controls.Add(this.inicial); this.inicial.Location = new Point(136, 97); this.inicial.Visible = true; } }