StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



MDI parent and childExpand / Collapse
Author
Message
Posted 05/07/2006 6:00:23 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
I have 2 of your StandardForms. I set one to be an MDI parent and the other to be an MDI child. When I tried to set the parent property of the child it throws an exception:
Top-level control cannot be added to a control.

???
Post #1116
Posted 05/08/2006 8:38:03 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
From the google searching I've been able to do on that error message, it appears you cannot add a form to another form's controls collection.  Whenever I try to reproduce this, I can only get the error message when trying to set the Parent property of the child form to the instance of the main form, which tries to add the child as a control onto the main form.  However, in an MDI environment you should use the MdiParent property, not the Parent property, which should produce the functionality you're looking for


www.bungie.net
Post #1123
Posted 05/08/2006 4:10:27 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
You know, I think I knew that at some point. Thanks for reminding me.
Post #1135
Posted 05/09/2006 8:19:52 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
No problem


www.bungie.net
Post #1144
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:39pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.062. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.