Esempio n. 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            pnlPrincipal.Controls.Clear();

            frmPainel frm = new frmPainel();

            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.TopLevel = false;
            frm.AutoScroll = true;

            pnlPrincipal.Controls.Add(frm);

            frm.Show();
        }
Esempio n. 2
0
        private void btnPainel_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
        {
            pnlPrincipal.Controls.Clear();

            frmPainel frm = new frmPainel();

            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.TopLevel = false;
            frm.AutoScroll = true;

            pnlPrincipal.Controls.Add(frm);

            frm.Show();
        }