I am trying to swap out user controls dynamically. How can I 'hide' controls on a panel? Removing them from the Controls collection does not work and setting the control's visible property does not work.
ServersView servers = new ServersView();
ServersPresenter presenter = new ServersPresenter(servers);
_view.SettingsPanel.Controls.Add(servers);
_view.SettingsPanel.Controls[0].Visible = false;
The new control is not visible after added because the other user control is still visible. Can someone tell me how to hide the user controls?
Thanks