Windows表单-关于MultiDocument界面 [英] Windows forms --about the MultiDocument Interface

查看:87
本文介绍了Windows表单-关于MultiDocument界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海..
我先用Menustrip项目创建了一个child1表单,并在其中添加了一些菜单和菜单项.现在,我创建了Child2 Form,其中包含一些具有某些功能的文本框控件.
现在,我采用了一个ParentForm来实现多文档"界面,在菜单项中,我将两个子窗体的父级称为ParentForm.

在执行并单击菜单项时,清楚地打开了child2表单,打开了菜单条的child1表单,但来自菜单项的child1粘贴在了Parent From menustrip中.
请告诉我如何限制child1表单的行为并将menuItem保留在常规位置.

Hai..
i have created one child1 form first with Menustrip item and in that i have add some menu and menu items. And now i have created Child2 Form with some textbox controls with some functionality.
Now i have taken one ParentForm to implement Multi Document interface , in menu items i have refer the two child forms parents as ParentForm.

while execting and clicking on to menu items child2 form opened clearly and child1 form with menu strips opened but child1 from menuitems are pasted in Parent From menustrip.
Please tell me how to restrict that behaviour of the child1 forms and place the menuItems remain in their asusual place

推荐答案

如果您在主表单上使用MenuStrip,请设置将其"AllowMerge"属性设置为"false".

如果您不使用MenuStrip,请描述您使用的控件.
If you are using a MenuStrip on the Main Form, set its ''AllowMerge'' property to ''false.

If you are not using a MenuStrip, then please describe what controls you are using.


这篇关于Windows表单-关于MultiDocument界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆