Hi Shane
I fear you will have to live with this if you use the WebBrowser control. If
you don't catch first chance exceptions the code will proceed and the
control should work correctly. Watch out for MarshalDirectiveException:
"Marshaler restriction: Excessively long string" exceptions as well. These
will pop up all over the place, but can usually be ignored.
Unfortunately the WebBrowser control is pretty flaky when used in .NET. That
is not to say that it doesn't work (or can't be made to work), but you will
have to ignore these particular exceptions, and if you want to do anything
sophisticated you will have to scour the newsgroups for information, or ask
here, of course.
The way I tackled it was to wrap the WebBrowser control in a user control,
and then I could protect the rest of my program from these wild exceptions.
You are effectively creating your own, well-behaved browser control.
You may like to look here as well
microsoft.public.inetsdk.programming.webbrowser_ct l
microsoft.public.inetsdk.programming.mshtml_hostin g
although there is less VB.NET specific knowledge there.
HTH
Charles
"Shane Story" <no****@nothanks.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I am trying to add the Microsoft Web Browseractive X control to a vb.net
form.
I always get an error on the EndInit line.
Parts of the errors says:
"Unknown error"
"First Chance exception"
I tried putting it in a user control but this failed also.
Anyone have a solution?
Or is there another control that is free that could be used in place of
it?
I need a solution now and not a VS 2005 solution.
Thanks,
Shane