That doesn't work. :-(
Maybe this has something to do with the fact that the method containing this
code is in a module and not a form? I gave the method a parameter via which
a form can pass a reference to itself, and this reference is then set to be
the owner of the new form, so it's doing exactly the same thing you
specified, in essence. However, it just doesn't seem to want to work.
- Don
"Kerry Moorman" <Ke**********@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Don,
Before showing the second form modally, make the first form the owner of
the
second form:
Dim f As New Form2()
f.Owner = Me
f.ShowDialog()
Kerry Moorman
"Don" wrote:
I have a form that displays a second form modally (via ShowDialog). When
the second form gets minimized, how do you get the parent form to
minimize,
too?