I'm trying to display some HTML on a form in a VB.Net project.
I've referenced the COM WebBrowser control, and put an instance of it on my
form.
But during the Form_Load, I'm getting the following error:
The code generator inserted the following line of code in the form (wbReport
is the
name of the WebBrowser control)
CType(Me.wbReport, System.ComponentModel.ISupportInitialize).EndInit( )
When the form gets loaded, this line of code generates a
InteropServices.ComException
("Unknown Error").
This is driving me crazy, since I downloaded a simple example of using the
WebBrowser in
VB.Net, and it works without this error.
A couple of points:
The webbrowser control is hosted on a Tab control, which is on a form that
is an MDI Child.
Could either of these be the culprit?
How can I display HTML on a form in VB.Net?
Thanks!
---Selden McCabe