Nevron Forum

How to reference to current active children Host and add new panel there

https://www.nevron.com/Forum/Topic3096.aspx

By JSW W. - Tuesday, February 16, 2010

Dim tmp_DockHost As NDockingPanelHost = DirectCast(current_active_DockManager.RootContainer.RootZone.Children(1), NDockingPanelHost)
tmp_DockHost.AddChild(t_panel)


I want to add new panel to the same host of currently active panel.
However, i could not get to currently activepanel, and PanelHost.

I tried DockManger.activePanel but it return null.
By Angel Chorbadzhiev - Tuesday, February 16, 2010

Hello JSW W.,

You need to have panel that has the focus in order to have ActivePanel property different than null.

Regards,

Angel.