all groups > dotnet general > july 2004 >
You're in the

dotnet general

group:

Minimized Parent Form when its child form is minimized


Minimized Parent Form when its child form is minimized Tai
7/4/2004 8:20:01 PM
dotnet general:
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
Double post Answered below(Re: Minimized Parent Form when its child form is minimized) Cor Ligthert
7/5/2004 8:16:32 AM

AddThis Social Bookmark Button