简体   繁体   English

C#中的MDI表单问题

[英]Problem with MDI form in c#

When I called show() of MDI child from its parent for the first, got the following error... 当我第一次从其父级调用MDI子级的show()时,收到以下错误...

Method: CheckReleased Line: 0 Column: 0 [Exception]: Window handle already exists. 方法:CheckReleased行:0列:0 [异常]:窗口句柄已存在。

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. 第二次调用同一孩子的show()不会给出任何异常。 why it is failing for first time only? 为什么只有第一次失败?

Iam using Dotnet 3.5 framework... Iam使用Dotnet 3.5框架...

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 将MenuStrip附加到wpf中的MDI父窗口(Windows窗体)c#(或)mdi子菜单

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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