Hello I am Creating Windows Application Using DevExpress WinForms Controls.
I have Created Main Page which Contains RibbonControl at the top and One Navigation bar to left and big Panel which acts as container for all user controls say MainPanel.
when i click on any item from Navigation bar then usercontrol will add to MainPanel. it works fine.
But When i want to move from one usercontrol to another user control, - how to access the MainPanel and - how to show another user control and hide current user control.
Code to add UserControl In Panel :
mainPanel.Controls.Clear();
CustomerListControl c1 = new CustomerListControl();
c1.Dock = DockStyle.Fill;
mainPanel.Controls.Add(c1);
Please Help!!