[英]How to bring MDI child form to front of picture box in c#
I have a problem, I have a main form and I put a picturebox on it. 我有一个问题,我有一个主窗体,并在上面放了一个图片框。 Then I create a child form, I want to bring it to front of picturebox.
然后创建一个子窗体,我想将其带到图片框的前面。
Like History box in this picture 就像这张图片中的“历史记录”框
can anyone help me!! 谁能帮我!!
p/s: English is not my native English so can have some errors p / s:英语不是我的母语,所以可能会有一些错误
mdiChildForm. mdiChildForm。 BringToFront() should fix the issue.
BringToFront()应该解决此问题。
That doesn't look like a MDI application... 看起来不像MDI应用程序...
At any rate, the "History" box in that image is a " Tool Window ". 无论如何,该图像中的“历史记录”框是一个“ 工具窗口 ”。 Set its
FormBorderStyle()
property to "FixedToolWindow", its ShowInTaskBar()
property to false, and set its Opacity()
property to 70 or 80. 将其
FormBorderStyle()
属性设置为“ FixedToolWindow”,将其ShowInTaskBar()
属性设置为false,并将其Opacity()
属性设置为70或80。
Then display it by passing in the "owner" like this: 然后通过传递“所有者”来显示它,如下所示:
private void MainMdiForm_Load(object sender, EventArgs e)
{
History hist = new History();
hist.Show(this);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.