473,372 Members | 1,616 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,372 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 2318
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 need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.