I'm working with Infragistic controls. It creates a UserControl that is puts into a DockableControlPane that is then put into a DockAreaPane that is inside of a UltraDockManager that is inside a Form. Example udockManager.DockAreas has 5 DockAreaPane(dap1,dap2,dap3,dap4,dap5) and dap1 has 3 DockableControlPanes in its Panes (P1, P2, P3).I want to hide P2 based on some condition.
Hello,
You can hide and show panes easily using the Close and Show methods on the pane. For example, you might use the following code to hide a specific pane:
ultraDockManager1.ControlPanes["P2"].Close();
And this code when you want to show it:
ultraDockManager1.ControlPanes["P2"].Show();
Please let me know whether this works for you.
have you attached something? I haven't got anything to try.
Under normal conditions, you can set the Visible property on the DockableControlPane to false. Please try this out and let me know whether it works for you.