简体   繁体   中英

Problem with MDI form in c#

When I called show() of MDI child from its parent for the first, got the following error...

Method: CheckReleased Line: 0 Column: 0 [Exception]: Window handle already exists.

What is the cause for this error and how to overcome it?

Call to show() of the same child for the second time is not giving any exception. why it is failing for first time only?

Iam using Dotnet 3.5 framework...

The reason could be, Are you trying to show some child controls before the Form shows up.?

This error normally show off, if you try to make some child control visible (in the form), before the window get created. Because all the child controls in the forms needs it's parent handle.

Append a MenuStrip to an MDI Parent Window (Windows Forms) c# (or) mdi child menu in wpf

http://keranservices.blogspot.in/2014/02/append-menustrip-to-mdi-parent-window.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM