我有一个MainForm
类实例,我提出了另一种形式;
InputForm MyInput= new InputForm("Enter a Number");
MyInput.ShowDialog();
MyInput
我像这样从自身内部封闭形式;
private void Button_Click(object sender, EventArgs e)
{
//Do things here
this.Hide();
}
流程在 MainForm 中恢复并使用
this.Show();
或者
this.Activate();
两者都不会始终如一地把它MainForm
带到前面。我怎样才能做到这一点?