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(); }
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(); }