473,748 Members | 2,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Browser Control

VJ
I am using the web browser control.., I would like to add the control at
runtime...

I was adding the web browser control at desgin time. Now I decided to add
the control at run time so I removed the control from the form and also the
refrences to AxSHDocVw and SHDocVw, then I added the following statments

Dim axwbOfficeDocEd itor As New AxSHDocVw.AxWeb Browser
Me.Controls.Add (axwbOfficeDocE ditor)
axwbOfficeDocEd itor.Dock = DockStyle.Fill

I get the following error,
Type 'AxSHDocVw.AxWe bBrowser' is not defined.

What am I missing?? Can't I add the webbrowser control at run-time?

VJ
Nov 20 '05 #1
12 7633
Hi VJ.
The error is obvious: there isn't, in your code, a reference to the .dll
containing the "web browser" object.
You can simply add the "Web Browser" component to your toolbox. From the
main menu:
Tools->Add/Remove Toolbox Items->[tab]COM Components
and choose "Microsoft Web Browser" from the list. Then confirm and you'll
have a
browser component in your toolbox. Just drag and drop into your application.

Bye
Francesco
http://www.chantive.it/simplog/

"VJ" <vi********@yah oo.com> ha scritto nel messaggio
news:Oz******** ********@tk2msf tngp13.phx.gbl. ..
I am using the web browser control.., I would like to add the control at
runtime...

I was adding the web browser control at desgin time. Now I decided to add
the control at run time so I removed the control from the form and also the refrences to AxSHDocVw and SHDocVw, then I added the following statments

Dim axwbOfficeDocEd itor As New AxSHDocVw.AxWeb Browser
Me.Controls.Add (axwbOfficeDocE ditor)
axwbOfficeDocEd itor.Dock = DockStyle.Fill

I get the following error,
Type 'AxSHDocVw.AxWe bBrowser' is not defined.

What am I missing?? Can't I add the webbrowser control at run-time?

VJ

Nov 20 '05 #2
* "VJ" <vi********@yah oo.com> scripsit:
I am using the web browser control.., I would like to add the control at
runtime...

I was adding the web browser control at desgin time. Now I decided to add
the control at run time so I removed the control from the form and also the
refrences to AxSHDocVw and SHDocVw, then I added the following statments

Dim axwbOfficeDocEd itor As New AxSHDocVw.AxWeb Browser
Me.Controls.Add (axwbOfficeDocE ditor)
axwbOfficeDocEd itor.Dock = DockStyle.Fill

I get the following error,
Type 'AxSHDocVw.AxWe bBrowser' is not defined.

What am I missing?? Can't I add the webbrowser control at run-time?


You can, after you completed these steps:

311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<URL:http://support.microso ft.com/?id=311303>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Is your last name "Balena"??? ?
Nov 20 '05 #4
* "scorpion53 061" <sc************ @nospamhereever yahoo.com> scripsit:
Is your last name "Balena"??? ?


According to the weblog, its "De Carlo".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
yeah I saw that.

There is a guy named Balena that wrote a book that pretty much taught me
every thing I know about vb.net (save the sarcastic remark I just walked
into there :))

Somebody I would like to meet that guy. You talk about somebody who knows it
"all".
Nov 20 '05 #6
VJ
Hi..

I am not sure this link helps me... If I remove the 2 refernces "AxSHDocVw
and SHDocVw" this project aslo complains the same as mine..

The problem is if I have these 2 references.. they take up like large memory
when project loads...

VJ

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2h******** ****@uni-berlin.de...
* "VJ" <vi********@yah oo.com> scripsit:
I am using the web browser control.., I would like to add the control at
runtime...

I was adding the web browser control at desgin time. Now I decided to add the control at run time so I removed the control from the form and also the refrences to AxSHDocVw and SHDocVw, then I added the following statments

Dim axwbOfficeDocEd itor As New AxSHDocVw.AxWeb Browser
Me.Controls.Add (axwbOfficeDocE ditor)
axwbOfficeDocEd itor.Dock = DockStyle.Fill

I get the following error,
Type 'AxSHDocVw.AxWe bBrowser' is not defined.

What am I missing?? Can't I add the webbrowser control at run-time?


You can, after you completed these steps:

311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<URL:http://support.microso ft.com/?id=311303>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
Hi scorpion.
No, I'm not Francesco Balena :-) But I'm italian too but...
I'm not a genius as him :-(
If it's of your interest, Francesco is the editor of
http://www.vb2themax.com/.
Bye.
Francesco

"scorpion53 061" <sc************ @nospamhereever yahoo.com> ha scritto nel
messaggio news:ew******** ******@TK2MSFTN GP11.phx.gbl...
yeah I saw that.

There is a guy named Balena that wrote a book that pretty much taught me
every thing I know about vb.net (save the sarcastic remark I just walked
into there :))

Somebody I would like to meet that guy. You talk about somebody who knows it "all".

Nov 20 '05 #8
Hi VJ, can you explain to us what's the real problem?
Are you able to add Web Browser as component in the Toolbox?
Why do you remove the SHDocVw referencess from the solution? You need them!
Regarding the memory: yes, it's possible, because the Web Browser component
is just an "Internet Explorer" hosted in your project.
--
Francesco

"VJ" <vi********@yah oo.com> ha scritto nel messaggio
news:et******** ******@TK2MSFTN GP09.phx.gbl...
Hi..

I am not sure this link helps me... If I remove the 2 refernces "AxSHDocVw
and SHDocVw" this project aslo complains the same as mine..

The problem is if I have these 2 references.. they take up like large memory when project loads...

VJ

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2h******** ****@uni-berlin.de...
* "VJ" <vi********@yah oo.com> scripsit:
I am using the web browser control.., I would like to add the control at runtime...

I was adding the web browser control at desgin time. Now I decided to add the control at run time so I removed the control from the form and also
the
refrences to AxSHDocVw and SHDocVw, then I added the following

statments
Dim axwbOfficeDocEd itor As New AxSHDocVw.AxWeb Browser
Me.Controls.Add (axwbOfficeDocE ditor)
axwbOfficeDocEd itor.Dock = DockStyle.Fill

I get the following error,
Type 'AxSHDocVw.AxWe bBrowser' is not defined.

What am I missing?? Can't I add the webbrowser control at run-time?


You can, after you completed these steps:

311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<URL:http://support.microso ft.com/?id=311303>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #9
Hi VJ,

I find it curious that Herfried says you can do it without pulling it to
your desktop, I thought that neither Charles Law and neither me did ever
succeed in it, however maybe Charles did now already and than you will see a
message soon from him, which he always has done when he sees this kind of
messages.

Cor
Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2374
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 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...
1
3208
by: Mark Johnson | last post by:
I wonder if anyone has a solution? I wanted to use the web browser control as a 'zoom' box for a smaller textbox. I can format in the control, and save whatever formatting as HTML code back to the textbox when the web browser is closed. The only problem comes in the use of numeric entities to specify Unicode. The web browser control is fine when it comes to named entities, like &nbsp; . And there are a lot of named entities, just...
0
2883
by: Mark Johnson | last post by:
The last reply got sort of cutoff. So here again: So for anyone interested, here's the simple regexp patterns for the substitutions required. The textbox control is being 'zoomed' in a popup which uses a web browser control. As soon as any numeric entity gets put into the browser control, it's lost. It will display properly. But it can't be then read back out with document.body.innerHTML (or outerHTML). It's
1
7629
by: Praveena | last post by:
Hi All, I am developing a Web Page in ASP.NET where i am using a Web Browser control. I created this selecting the "Microsoft Web Browser" in the custom controls. Now the problem is with the access. Once I drag and drop this control on the ASPX page then some code like this gets added to the WebForm1.aspx OBJECT language="C#" id="mybrowser" with a class id and a list of properties.
28
564
by: BobAchgill | last post by:
Has anyone had success with using this Com control? When I add it into my tool box and drop it into my form it says in the properties that the Document and LocationURL are read only. (they are grayed out) I am successful to get Media Play Com to work alright in the form but can not get Web Browser to work.
1
4775
by: Oenone | last post by:
I've reached the conversion of a part of my application from VB6 to VB.NET which uses the COM Web Browser control to display HTML content generated by my application. The general approach used in VB6 is as follows: Open the form containing the browser Wait a few seconds for the Browser.Document property to initialise With the Document object, call the following methods: .Clear()
0
1625
by: Pieter | last post by:
Hi, I've a activex browser control in a form. I've added proxy server support to the control by modifying the proxy server settings in the registry. This works fine before the browser control is created (the browser control is only created after a button on the form is pressed). However, once the initial proxy settings are commited and the browser control is created, the browser control does not respond to any new settings even though...
1
2358
by: john conwell | last post by:
I'm using the Browser control to display html that my application generates. Some times i want a javascript to run when the html gets displayed in the browser control, and sometimes i dont. Is there a way to invoke a javascript function from the browser control? or maybe inject some javascript vis the control's reference to the Document object? I think i can do it with the Window object, but I have seem to figout out how to get to the...
5
2068
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an error and am directed to the Windows Application Event Log. The following message is logged: ------------- Source: ASP.NET 1.1.4322.0 Event ID: 1062
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.