473,721 Members | 1,811 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 7628
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
2373
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
3207
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
2882
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
7625
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
4772
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
1619
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
2357
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
2067
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
8727
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
9212
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...
1
9127
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8002
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5973
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
4483
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2569
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.