Esempio n. 1
0
        private void btnInicio_Click(object sender, EventArgs e)
        {
            pnlNav.Height = btnInicio.Height;
            pnlNav.Top    = btnInicio.Top;
            pnlNav.Left   = btnInicio.Left;

            this.pnlFormLoader.Controls.Clear();
            frmInicio frmInicio_Ctrls = new frmInicio()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmInicio_Ctrls.FormBorderStyle = FormBorderStyle.None;
            this.pnlFormLoader.Controls.Add(frmInicio_Ctrls);
            frmInicio_Ctrls.Show();
        }
Esempio n. 2
0
        public frmMenu()
        {
            InitializeComponent();
            //Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 25, 25));
            pnlNav.Height = btnInicio.Height;
            pnlNav.Top    = btnInicio.Top;
            pnlNav.Left   = btnInicio.Left;

            this.pnlFormLoader.Controls.Clear();
            frmInicio frmInicio_Ctrls = new frmInicio()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmInicio_Ctrls.FormBorderStyle = FormBorderStyle.None;
            this.pnlFormLoader.Controls.Add(frmInicio_Ctrls);
            frmInicio_Ctrls.Show();
        }