If Me.WindowState = State.Minimized Then
Me.Parent.WindowState = State.Minimized
Else
Me.Parent.WindowState = State.Normal
End If
class Form1 :[color=#0000ff]System.Windows.Forms[/color]{
.....
private void button1_Click(object sender, System.EventArgs e)
{
Form2 f2 = new Form2();
f2.showDialog();
}
}
class Form2 :[color=#0000ff]System.Windows.Forms[/color]{
.....
private void button1_Click(object sender, System.EventArgs e)
{
Form3 f3 = new Form3();
f3.showDialog();
}
}
class Form3 :[color=#0000ff]System.Windows.Forms[/color]{
.....
}