Your SecuritySample (C#) displays the main form for the app (SecurityMain) which has a flow panel to the left (pnlSide)with a themed container (ThemedContainer1). I like this approach but have a question. I want to expand on this some that when the Customers button the the SecurityMain form is clicked and the CustomerMaintenance form appears, it would dynamically add another ThemedContainer2 to the SecurityMain form's pnlSide area.
First I added a user control called CustomerMaintenanceThemedContainer which inherited from the Strataframe Themed Container. and used the Visual Designer to get it the same with, look and feel as the one already on the SecurityMain form.
My thought is to add a ThemedContainer to the pnlSide area of the SecurityMain form whenever I display another form such as the CustomerMaintenance form to give the user other information or links they could click on for the form.
When the CustomerMaintenance form first displays, what code would I need to add the Themed Container to the pnlSide area of the SecurityMain form? And then when the user CLOSES the CustomerMaintenance form, what code would be needed to removed the Themed Container from the pnlSide area on the SecurityMain form?
I added the following code on the button click of the cmdCustomers button on the SecurityMain form which does work, but this should happen as a part of the CustomerMaintenance form and not the button click on the SecurityMain form. Valet is my namespace for my application. My question is how do I get a reference to the SecurityMain form once the CustomerMaintenance form is displayed so that I can control the displaying of the associated Themed Container and removing it from the CustomerMaintenance form?
Valet.
frmCustomerMaintenanceUserThemedContainer ThemedContainer2 = new frmCustomerMaintenanceUserThemedContainer();this.pnlSide.Controls.Add(ThemedContainer2);LaunchForm(
typeof(frmCustomersMaintenance));