G
Guest
Hi all
I have 2 forms, frmMain and frmChild.
In frmMain, I declare a variable f as frmChid then Call f.ShowDialog()
I want when the child form is minimized, the Main form is also minimized automatically.
I tried some way to call frmMain.WindowState = FormWindowState.Minimized.
The result is my 2 forms are minimized but the side effect is the Child form is gone.
Dim f As New frmChild
f.ShowDialog()
Debug.WriteLine("ShowDialog Returned")
When the main form is minized, I saw that f.ShowDialog is also returned.
It makes my child form goes away.
I appriciate much your help.
Tai Le
I have 2 forms, frmMain and frmChild.
In frmMain, I declare a variable f as frmChid then Call f.ShowDialog()
I want when the child form is minimized, the Main form is also minimized automatically.
I tried some way to call frmMain.WindowState = FormWindowState.Minimized.
The result is my 2 forms are minimized but the side effect is the Child form is gone.
Dim f As New frmChild
f.ShowDialog()
Debug.WriteLine("ShowDialog Returned")
When the main form is minized, I saw that f.ShowDialog is also returned.
It makes my child form goes away.
I appriciate much your help.
Tai Le