I have a tab control in a which a few of the tabs include an AxWebBrowser
browser control (More accurately, I'm using Carl Nolan's Html Editor in all
but one of the tabs). When closing the application, a few .net error
messages flash on the screen, too quickly for me to see the error message (I
assume because the application closes immediately after. This does *not*
happen if every webbrowser control is actually drawn to the screen at some
point in the applications lifetime (so as long as each tab is selected at
some point, these error messages do not occur). A similar problem occurs
when I am editing the same form in Visual Studio. If I close the form
without selecting each tab, I receive an error message saying: "The
following exception has occured: TargetInvocationException: Unable to get
the window handle for 'AxWebBrowser' control. Windowless ActiveX controls
are not supported". This message pops up multiple times, always
corresponding to the number of tabs I have *not* selected. I've found a
very small number of posting of people who have had a similar problem, but I
can't find any kind of resolution. Does anyone have any ideas as to what
may be causing this error, and how to avoid it?

Thanks,
Joe