471,353 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

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

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.

Jul 21 '05 #1
2 2201
CMM
"dxben" wrote:
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.
Jul 21 '05 #2
dxben wrote:
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.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by vbmark | last post: by
25 posts views Thread by bweaverusenet | last post: by
8 posts views Thread by =?Utf-8?B?TFc=?= | last post: by
4 posts views Thread by James | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.