Is it possible to dock controls within a panel. For example I have 4 panel on my form, depending on what mode the user chooses is what is displayed panel wise. On one panel, I'd like to dock a treeview and an UltraGrid to the panel, not the form.
Possible?
You cannot add an UltraDockManager to a .Net Panel control because the HostControl of the manager must be a ContainerControl and Panel is not derived from ContainerControl. I would recommend making custom UserControls to replace each of the four panels. You can add an UltraDockManager to a UserControl and as far as a container goes, it is very similar ot a Panel.
Mike,
Do you have some sample code to demonstrate this? I too want to place an UltraDocManager in a panel - so I tried your suggestion about creating a UserControl - but I can't get the controls to appear in the custom control container. Thanks!
Bob
You could use code to add the controls to the custom control container, but the easiest way is just to add those control to the design surface of your UserControl. If there are events on the controls that the main form should handle, define corresponding events on the UserControl. Then handle the events of the contained controls in the UserControl and in the event handlers, fire off your corresponding events. Then when you add an instance of your UserControl to the main form, add event handlers for the custom, corresponding events.
I'll try this out on a smaller test project. Unfortunately, the controls that I want to add are done dynamically during runtime based on user selections. I've been able to to use the TabbedMdiForm control to achieve my desired results.