473,387 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2331
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
7
by: Randell D. | last post by:
Folks, I have a Javascript performance question that I might have problems explaining... In PHP, better performance can be obtained dealing directly with a variable, as opposed to an element...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
by: vbmark | last post by:
I want the MonthCalendar control to return the single day selected. I have MaxSelectionCount = 1. What I get back though is this: "SelectionRange: Start: 5/5/2005 12:00:00 AM, End: 5/5/2005...
2
by: dxben | last post by:
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...
25
by: bweaverusenet | last post by:
Hi. I am trying to get some javascript to work in IE6, from the address line. It works in Firefox and, I believe, IE7. It appears that with some number of nested structures, the code does not...
8
by: =?Utf-8?B?TFc=?= | last post by:
Hello! I am just learning about forms authentication so please excuse this basic question. I am using .NET 1.1 and C#. I have created my web.config file and my login.aspx and the associated cs...
4
by: James | last post by:
Hello everyone, While loading a page (http://www.edmonton.ca/portal/server.pt?space=CommunityPage&control=SetCommunity&CommunityID=239) into a webbrowser control I use invokemember on the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.