I'm trying to have my panels overlap, but visual studio is placing my second panel INSIDE the main panel, I want them to be purely independent of one another. I have my main menu panel and when the user clicks a button that menu panel is disabled and changed to non visible and the other panel is enabled and made visible (and brought to front? I don't think you can do that with panels)
But what it actually happening is the menu panel is made non visible and disabled, visual studio is thinking the second panel is part of the first, consequently disabling the second panel I want displayed. I've tried building the panels in various fashions. I built the main menu panel on the form it is to be displayed in and in another testing form I made the second panel, then back on the main form (with the main form selected NOT the menu panel) I paste the second panel overlapping the menu panel, not inside it. On a button click the following code executes
panelTutorStart.Visible = false;
panelTutorStart.Enabled = false;
panelProblemDisp.Visible = true;
panelProblemDisp.Enabled = true;
labelExplain.Visible = true;
Is there a way, programmatically, that I could add and remove the panels independently instead of just changing enable/visible to avoid Visual studio thinking that the second panel should be inside the menu panel?