Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to handle window closing?

2 views
Skip to first unread message

Sathish

unread,
Oct 15, 2004, 7:53:02 PM10/15/04
to
Hi,

I am creating a windows form that hosts the WebBrowser control.
To create new windows from this form, I am using the following code:

browser.Form1 newWindow = new browser.Form1();
e.Equals(newWindow.axWebBrowser1.Application); // e is the event
newWindow.Show();
newWindow.Visible = true;

This works fine. But, if I close the parent or original form from which the
other windows are created, all the other windows are also getting closed.

My question is: How can I make sure that after closing the parent or
original form, the other windows are not closed?

Thanks,
Sathish

0 new messages