Posted 19 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
![Avatar](https://secure.gravatar.com/avatar/25cd2058e087cf4405ab7e859158e6c1.jpg?s=64&d=identicon&r=g)
How do you programmatically attach a ToolWindow to the MDI area? I've tried the following code:
And I get an ApplicationException: The dock operation 'Attach' is not permitted on a target type of 'Manager'
What am I missing? Thanks for the help.
ToolWindow twToolbox = new ToolWindow(dockManager, "TOOLBOX", "Toolbox", null, toolboxPane);
twToolbox.DockTo(dockManager, DockOperationType.Attach);
What am I missing? Thanks for the help.