在容器窗体控件过来子窗体? [英] Controls in container form come over child form?
本文介绍了在容器窗体控件过来子窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个容器表我的菜单和按钮打开疗法形式。
In a container form I have menu and buttons to open ther forms.
在这里,我面临的一个问题,当我打开任何形式对这些buttns和标贴过来了新开的形式。
Here I am facing a problem when I open any form these buttns and lables come over newly opened form.
请指导我如何我可以管理这个问题?我想开一个新的形式,把这些容器窗体的控件在回地面。
Please guide me how I can manage this issue? I want to open a new form and keep these container form's controls in back ground of it.
推荐答案
我也得到了同样的问题。我有一个替代的解决方案如下所述:
I've also got the same problem. I got an alternative solution as described below:
- 插入一个定时器控制
- 我在一个面板容器中添加的控件
-
和做了以下
- Insert a timer control
- I've added the controls in a panel container
And did the following
private void timer1_Tick(object sender, EventArgs e)
{
if ((int)MdiChildren.GetLength(0) > 0)
{
panel1.Visible = false;
}
else
{
panel1.Visible = true;
}
}
这篇关于在容器窗体控件过来子窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文