Error invoking Create Tool Window

Docking/MDI for Windows Forms Forum

Posted 13 years ago by Arun Rajaraman - Software Developer, Delmatic ltd
Version: 2.0.0111
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar
Hi,

For my test app, I Dragged a Dockmanager to form, added ToolWindows by designer. Works fine,.

For my App scenario I require space for other controls. So i try to use the Table Layout panel,panel or split panel.

From other Posts I tried to

Set the Host Container to a Control inherited from Container.
a. Deleted all the existing toolwindows.
b. Created thru design Just the Panel and SplitPanel.
c. Dragged the Dockmanager
d. Set the Host Container to SplitPanel Control. Compiles fine.

Thru designer I try to "Create Tool Window" --> Error invoking Create Tool Window Details :
Collection is Read Only.

p.s
Tried doing it programmatically. Not succeeded. I have a previous version of actipro 1.X used in our in house software.anything to do with it.

i can send a sample solution as well.
regards,

Arun Rajaraman

Comments (4)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arun,

For questions like this, please always submit a simple sample project since they often require debugging to sort out. Thanks!


Actipro Software Support

Posted 13 years ago by Arun Rajaraman - Software Developer, Delmatic ltd
Avatar
Hi,
I have submitted a sample project to support@actipro
with a renamed file - actiproTrial1.ziprenamed

Regards,.
Arun

Arun Rajaraman

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arun,

If you look at the SplitContainer control code via Reflector, you can see that its Controls collection is initialized to be read-only. Thus it will throw that exception whenever something tries to add controls to it, such as we try when you click to Create Tool Window.

Instead what you can do is create your SplitContainer and then in one of the panes, add an empty UserControl-based class and set The HostContainerControl to that. That should work.


Actipro Software Support

Posted 13 years ago by Arun Rajaraman - Software Developer, Delmatic ltd
Avatar
Hi,

Thanks for the pointer.. I ll try the solution and keep updated.
Thanks

Arun Rajaraman

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.