【发布时间】:2017-08-16 13:27:00
【问题描述】:
我想先显示 form2(Filter Form)。实际上我是从 Form1(Report Test Form) 页面加载中调用 form2。但它出现在 Form2 的后面位置和 Form1 的位置。
代码
private void ReportTestForm_Load(object sender, EventArgs e)
{
ReportFilterForm report = new ReportFilterForm();
report.Show();
}
截图
注意
我不想隐藏表格 1
【问题讨论】:
-
report.Show(this);
-
@Steve 谢谢史蒂夫。它正在工作。但是你能告诉我
this在这里的工作原理吗 -
This explain the Owner property 在 Winforms 中。奇怪的是,最好在 WPF 文档中解释 msdn.microsoft.com/en-us/library/…