如何打开多个表单而不关闭其他表单

时间:2017-06-27 10:54:37

标签: c#

我试图在不关闭前一个表单的情况下打开两个或两个以上的表单 但每当我尝试打开下一个表单时,前一个表单就会出现在屏幕后面,然后只打开下一个表单。使用form.Show()方法打开表单。 This is the main form of my project. When I open more than one form the form goes behind the panels of this form

1 个答案:

答案 0 :(得分:0)

从父表单中,您可以通过以下方式打开子表单(

childForm.Show(this);

子表单将显示在父表单的顶部,并且在关闭子表单之前不允许用户返回父表单。

https://msdn.microsoft.com/ru-ru/library/szcefbbd(v=vs.110).aspx