"RD" <(E-Mail Removed)> schrieb
> Dim myfrm as new frmb
> myfrm.show()
>
> Dim myfrm2 as new frmc
> myfrm2.show
>
> Opens two forms from a butom located on forma
>
> when I close forma I would like both form myfrm and for myfrm2 to
> close automatically
>
> Can anyone tell me how or point me to some sample code that does this
> type of thing?
Form A has a closed event. Handle the event (or overwrite OnClosed) and
close the other forms by calling their Close methods.
You can also make form A the owner of the other forms, so they be will
automatically closed when form A is closed, but the owned forms (B and C)
will always be in front of the owner form (A). In addition, the owned forms
will automatically be minimized when the owner form is minimized. The might
be useful - but if you don't want this behavior you can go the first way.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html