Question about using MS IE Web Browser Control in .NET Forms

G

Guest

I am considering a situation where I have (n) number of form windows, each
with an instance of the Microsoft Web Browser Control (IE) on each form. In
each web browser control is an HTML page that has a Java applet. This is the
only way I am aware of to get a Java applet to paint within a .NET Forms
window.

Given that scenario I am trying to determine whethere there would be one
Java VM loaded for all of the (n) applets inside the (n) MS Web Controls? Or
would there be one Java VM loaded for each applet? Also, if using IE6, what
JVM is being used? Microsoft's or Sun's?

Also, are there any thoughts on what overhead there would be in having
multiple instances of the MS Web Control? I am expecting upwards of 10-15 as
a worst case.
 
G

Guest

dxben said:
I am considering a situation where I have (n) number of form windows, each
with an instance of the Microsoft Web Browser Control (IE) on each form. In
each web browser control is an HTML page that has a Java applet. This is the
only way I am aware of to get a Java applet to paint within a .NET Forms
window.

It's the only way that I know of too... though I'm a little surprise no one
has written at least an ActiveX wrapper to accomplish this.... I guess
there's never been much of a need. I would rather use a simple ActiveX
wrapper even in .NET than use the full blown Webbrowser control to host a
Java applet.
Given that scenario I am trying to determine whethere there would be one
Java VM loaded for all of the (n) applets inside the (n) MS Web Controls? Or
would there be one Java VM loaded for each applet?

Only one VM is loaded.
Also, if using IE6, what
JVM is being used? Microsoft's or Sun's?

Whichever one is registered. If you install Sun JRE it installs itself as
the default supplanting MS's implementation.
Also, are there any thoughts on what overhead there would be in having
multiple instances of the MS Web Control? I am expecting upwards of 10-15 as
a worst case.

Not much more overhead than running IE normally. They'll all run in your
singular process. HOWEVER, beware that the Webbrowser control behaves a
little funky in .NET. For instance if you load a form that contains a
Webbrowser control and you don't show the window at least once, you get a
"handle not created" error when you dispose of the form. This makes putting
the Webbrowser control on tab pages and stuff like that a little error prone.
 
M

Mitchell Vincent

dxben said:
I am considering a situation where I have (n) number of form windows, each
with an instance of the Microsoft Web Browser Control (IE) on each form. In
each web browser control is an HTML page that has a Java applet. This is the
only way I am aware of to get a Java applet to paint within a .NET Forms
window.

Given that scenario I am trying to determine whethere there would be one
Java VM loaded for all of the (n) applets inside the (n) MS Web Controls? Or
would there be one Java VM loaded for each applet? Also, if using IE6, what
JVM is being used? Microsoft's or Sun's?

Also, are there any thoughts on what overhead there would be in having
multiple instances of the MS Web Control? I am expecting upwards of 10-15 as
a worst case.

There are some problems using the ActiveX browser control with .NET. I
found one in about 2 minutes when I tried to set the ShowInTaskbar
window property to false. Apparently you can't do that with the browser
control on a form because setting that property destroys the window
instead of just making it invisible - which somehow breaks the browser
control.

Just an FYI and a heads up that there might be other issues with .NET
and the browser control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top