在MDI应用程序的父窗体问题 [英] Problems with the Parent Form in MDI Application

查看:178
本文介绍了在MDI应用程序的父窗体问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的按钮作为对照,在容器(父窗体) 当子窗体显示控件的父窗体(按钮,图片,标签)出现在子窗体上并覆盖它,我不能看到子窗体 做任何一个知道如何以prevent这个,,和我不希望让这些控件

i am using Buttons as controls in the Container ( Parent Form ) and when the Child form appears the Controls in the Parent Form ( Button , Picture , label ) appears on the Child form and Cover it and i cant see the child Form do any one know how to prevent this ,, and i don want to make these controls as

Control.Visible = FALSE;

因为当我尽量减少子窗体我希望用户能看到集装箱内所有控件的能力

cuz when i minimize the child form i want the user to get the ability to see the Container with all the controls

推荐答案

这孩子控制另一容器或一个单独的形式?如果它是另一个容器使用任何的子窗体和bringtoFront即 child.BringToFront()的名称; 我觉得你的问题是,你把控件在父容器。他们将留在你创建的任何MDI子窗体顶部。我想为你处理这个问题的最好办法是基于MDI子窗体的窗口状态通过创建在子表单自定义事件或监测父子窗体的窗口状态来改变自己的知名度。

Is the child control another container or a seperate form? If it is another container use whatever the name of the child form and bringtoFront i.e. child.BringToFront(); I think your problem is that you are putting controls in the parent container. They will remain on top of any mdi Child forms that you create. I think the best way for you to handle this is to change their visibility based on the window state of the mdi Child form either by creating a custom event in the Child form or monitoring the window state of the child form in the parent.

这篇关于在MDI应用程序的父窗体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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