Hi,
I have some six to seven dockable control panes in my form. And I have created six to seven menuitems in form to show this forms.
Initially I show up all my dockable control panes. If I close any dockable control pane by using X (close), I should reopen it through the menu item. The event handler for this menuitem is having this piece of code.
if (this.myComp1DockableControlPane.Closed) { this.myComp1DockableControlPane.Show(); } else { this.myComp1DockableControlPane.Activate(); }
However I am not able to bring back my dockablecontrol pane with the above code: Also I found that the closed property of the dockable control pane results to false. Can anyone tell me where I am doing wrong.
Thanks,
Sanjeev.
Hi Sanjeev,
I just did a quick test and it seems to work for me. Get the sample above and see if it works for you. If not which version of the NetAdvantage product are you using?
This is working fine for me now. Earliar I had all DockableControlpanes as private variables, now I am not caching these, taking dynamically from the UltraDockManager(PaneFromControl method). Then it is working fine. I am not able figure out what is the actual issue with private variables of DockableControlPanes. Since it is working fine as of now, we can mark it as answered.
Thanks very much,