Пример #1
0
        private void navBarItem10_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            frmProgress frmBC = new frmProgress()
            {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill
            };

            panelControl1.Controls.Add(frmBC);
            frmBC.Show();
        }
Пример #2
0
        private void btnCheck_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            panelControl1.Controls.Clear();
            frmProgress frmBC = new frmProgress()
            {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill
            };

            panelControl1.Controls.Add(frmBC);
            frmBC.Show();
            Cursor.Current = Cursors.Default;
        }