> Hi,
>
[quoted text clipped - 25 lines]
> {
> nativeWindow.ReleaseHandle();
Are you trying to leave the window open after your .NET form is disposed?
That's what ReleaseHandle does, detaches the Windows object from the .NET
object. If you want the window to close just do nothing, base.Dispose()
below will cleanup the window.
> }
>
[quoted text clipped - 5 lines]
> ExcelForm excelForm = new ExcelForm();
> excelForm.Show(new IntPtr(Application.Hwnd));
Tom - 21 Jun 2007 10:47 GMT
The native window I'm passing is the main window of Excel.
So I guess the answer is yes, I need the window to stay open after
my .NET child form closes.