private void navBarItem3_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { panelControl1.Controls.Clear(); frmProjReceivable frmPR = new frmProjReceivable() { TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill }; panelControl1.Controls.Add(frmPR); frmPR.Show(); }
private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Cursor.Current = Cursors.WaitCursor; panelControl1.Controls.Clear(); frmProjReceivable frmPR = new frmProjReceivable() { TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill }; panelControl1.Controls.Add(frmPR); frmPR.Show(); Cursor.Current = Cursors.Default; }