473,847 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft Web Browser COM control in VB .Net

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.

Maybe you can tell me there is another way to get HTML
browsing capability
inside a form?

I found a link on Google that seemed to be referencing
this issue but could
not get their code to compile
http://weblogs.asp.net/kaevans/archi...02/25/2936.asp
x

Nov 20 '05
28 5352
Cor
Hi Charles,

The main problem is that I never could use the Shdocvw (when I did want all
the benefits) directly but always the axshdocvw.

(And maybe a little bit lazy when I saw it did not go and the axshdovw did
work fine, not check it really very deep)

How is that with you, do you use the Shdocvw withouth the AxShdocvw.

Cor
Nov 20 '05 #11
Hi Cor

No I don't. I have found it easier to use the RCW that .NET creates. In
order to make SHDocVw work on its own, there are several interfaces that
need to be implemented by the host, and these are not defined in the
framework, so they need to be created by hand. When .NET creates the RCW it
uses an AxHost as the container for SHDocVw, which takes care of all the
extra interfaces required.

There are reasons why doing it all by hand is beneficial, but I have managed
to get round the problems like events not firing by other means.

Charles
"Cor" <no*@non.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Charles,

The main problem is that I never could use the Shdocvw (when I did want all the benefits) directly but always the axshdocvw.

(And maybe a little bit lazy when I saw it did not go and the axshdovw did
work fine, not check it really very deep)

How is that with you, do you use the Shdocvw withouth the AxShdocvw.

Cor

Nov 20 '05 #12
Hi Cor

No I don't. I have found it easier to use the RCW that .NET creates. In
order to make SHDocVw work on its own, there are several interfaces that
need to be implemented by the host, and these are not defined in the
framework, so they need to be created by hand. When .NET creates the RCW it
uses an AxHost as the container for SHDocVw, which takes care of all the
extra interfaces required.

There are reasons why doing it all by hand is beneficial, but I have managed
to get round the problems like events not firing by other means.

Charles
"Cor" <no*@non.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Charles,

The main problem is that I never could use the Shdocvw (when I did want all the benefits) directly but always the axshdocvw.

(And maybe a little bit lazy when I saw it did not go and the axshdovw did
work fine, not check it really very deep)

How is that with you, do you use the Shdocvw withouth the AxShdocvw.

Cor

Nov 20 '05 #13
I looked at the Navigate ( ) Method but it was not clear
how or if that is what I need to direct the Web Browswer
control to point to read an HTML file.

You guys are so smart...pleeeas e share with me how you
get the Microsoft Web Browser (shdocVw.dll) to read a
file with in a VB form. I am still looking at a white
space where the control is painted on my form.

-----Original Message-----
When I run the form with a Microsoft Web Browser
(shdocVw.dll ) i only get a white box. It is not obvioushow to feed the browser box an HTML file to read.

I searched on my drives and did not find a axshdocVw.dll.

I searched in the COM list and did not see an
adWebbrowser.. . is this a third party COM? If it is whatI need to finish the task...where to I get it?
If there are two methods for getting a browser control ina form: Microsoft Web Browser AND AdWebbrowser...
What are the advantages of each?
-----Original Message-----
There is a difference between the adWebbrowser and the

webbrowser

axshdocVw.d ll and shdocVw.dll and only shdocVW.dll, are

you using axshdocvw?

Cor
.

.

Nov 20 '05 #14
I looked at the Navigate ( ) Method but it was not clear
how or if that is what I need to direct the Web Browswer
control to point to read an HTML file.

You guys are so smart...pleeeas e share with me how you
get the Microsoft Web Browser (shdocVw.dll) to read a
file with in a VB form. I am still looking at a white
space where the control is painted on my form.

-----Original Message-----
When I run the form with a Microsoft Web Browser
(shdocVw.dll ) i only get a white box. It is not obvioushow to feed the browser box an HTML file to read.

I searched on my drives and did not find a axshdocVw.dll.

I searched in the COM list and did not see an
adWebbrowser.. . is this a third party COM? If it is whatI need to finish the task...where to I get it?
If there are two methods for getting a browser control ina form: Microsoft Web Browser AND AdWebbrowser...
What are the advantages of each?
-----Original Message-----
There is a difference between the adWebbrowser and the

webbrowser

axshdocVw.d ll and shdocVw.dll and only shdocVW.dll, are

you using axshdocvw?

Cor
.

.

Nov 20 '05 #15
Hi Bob

Believe me, we are not trying to keep it from you.

You can use the Navigate method to load a file as well, e.g.

AxWebBrowser1.N avigate("c:\myp lace\myfile.htm ")

What happens when you use the above syntax?

Charles
"BobAchgill " <an*******@disc ussions.microso ft.com> wrote in message
news:26******** *************** *****@phx.gbl.. .
I looked at the Navigate ( ) Method but it was not clear
how or if that is what I need to direct the Web Browswer
control to point to read an HTML file.

You guys are so smart...pleeeas e share with me how you
get the Microsoft Web Browser (shdocVw.dll) to read a
file with in a VB form. I am still looking at a white
space where the control is painted on my form.

-----Original Message-----
When I run the form with a Microsoft Web Browser
(shdocVw.dll ) i only get a white box. It is not

obvious
how to feed the browser box an HTML file to read.

I searched on my drives and did not find a axshdocVw.dll.

I searched in the COM list and did not see an
adWebbrowser.. . is this a third party COM? If it is

what
I need to finish the task...where to I get it?
If there are two methods for getting a browser control

in
a form: Microsoft Web Browser AND AdWebbrowser...
What are the advantages of each?
-----Original Message-----
There is a difference between the adWebbrowser and the

webbrowser

axshdocVw.d ll and shdocVw.dll and only shdocVW.dll, are

you using axshdocvw?

Cor
.

.

Nov 20 '05 #16
Hi Bob

Believe me, we are not trying to keep it from you.

You can use the Navigate method to load a file as well, e.g.

AxWebBrowser1.N avigate("c:\myp lace\myfile.htm ")

What happens when you use the above syntax?

Charles
"BobAchgill " <an*******@disc ussions.microso ft.com> wrote in message
news:26******** *************** *****@phx.gbl.. .
I looked at the Navigate ( ) Method but it was not clear
how or if that is what I need to direct the Web Browswer
control to point to read an HTML file.

You guys are so smart...pleeeas e share with me how you
get the Microsoft Web Browser (shdocVw.dll) to read a
file with in a VB form. I am still looking at a white
space where the control is painted on my form.

-----Original Message-----
When I run the form with a Microsoft Web Browser
(shdocVw.dll ) i only get a white box. It is not

obvious
how to feed the browser box an HTML file to read.

I searched on my drives and did not find a axshdocVw.dll.

I searched in the COM list and did not see an
adWebbrowser.. . is this a third party COM? If it is

what
I need to finish the task...where to I get it?
If there are two methods for getting a browser control

in
a form: Microsoft Web Browser AND AdWebbrowser...
What are the advantages of each?
-----Original Message-----
There is a difference between the adWebbrowser and the

webbrowser

axshdocVw.d ll and shdocVw.dll and only shdocVW.dll, are

you using axshdocvw?

Cor
.

.

Nov 20 '05 #17
Hi Bob,

Here is as far as I know that axwebbrowser also in

Normaly Herfried supports this links and now I had to search for it.

Searching on the name Herfried in the dotnet groups does not help a lot.

:-)

http://msdn.microsoft.com/downloads/...er/default.asp

If it is the wrong one, message back?

I hope you can go on now, it is a complete solution.

Cor
Nov 20 '05 #18
Hi Bob,

Here is as far as I know that axwebbrowser also in

Normaly Herfried supports this links and now I had to search for it.

Searching on the name Herfried in the dotnet groups does not help a lot.

:-)

http://msdn.microsoft.com/downloads/...er/default.asp

If it is the wrong one, message back?

I hope you can go on now, it is a complete solution.

Cor
Nov 20 '05 #19
It works! I successfully did the AxWebBrowser1.N avigate
("c:\myplace\my file.htm") Thanks!!

Where can I find a list of all the methods for
AxWebBrowser or is that a stupid question?

-----Original Message-----
Hi Bob

Believe me, we are not trying to keep it from you.

You can use the Navigate method to load a file as well, e.g.
AxWebBrowser1. Navigate("c:\my place\myfile.ht m")

What happens when you use the above syntax?

Charles
"BobAchgill " <an*******@disc ussions.microso ft.com> wrote in messagenews:26******* *************** ******@phx.gbl. ..
I looked at the Navigate ( ) Method but it was not clear how or if that is what I need to direct the Web Browswer control to point to read an HTML file.

You guys are so smart...pleeeas e share with me how you
get the Microsoft Web Browser (shdocVw.dll) to read a
file with in a VB form. I am still looking at a white
space where the control is painted on my form.

>-----Original Message-----
>When I run the form with a Microsoft Web Browser
>(shdocVw.dll ) i only get a white box. It is not

obvious
>how to feed the browser box an HTML file to read.
>
>I searched on my drives and did not find a axshdocVw.dll. >
>I searched in the COM list and did not see an
>adWebbrowser.. . is this a third party COM? If it is

what
>I need to finish the task...where to I get it?
>
>
>If there are two methods for getting a browser control

in
>a form: Microsoft Web Browser AND AdWebbrowser...
>What are the advantages of each?
>
>>-----Original Message-----
>>There is a difference between the adWebbrowser and the >webbrowser
>>
>>axshdocVw.d ll and shdocVw.dll and only shdocVW.dll, are >you using axshdocvw?
>>
>>Cor
>>
>>
>>.
>>
>.
>

.

Nov 20 '05 #20

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

Similar topics

476
18652
by: Xah Lee | last post by:
Microsoft Hatred, FAQ Xah Lee, 20020518 Question: U.S. Judges are not morons, and quite a few others are not morons. They find MS guilty, so it must be true. Answer: so did the German population thought Jews are morons by heritage, to the point that Jews should be exterminated from earth. Apparently, the entire German population cannot be morons, they must be
1
3770
by: a94ws7 | last post by:
I am trying to automate a digital signature process with Microsoft Word, I have experimented by loading the word document into word and then from there placing that document inside a picturebox so as to make it look embedded, but I am hoping I can find some resolve with using the web browser control. I can successfully load a document into the control, but how do I gain control of the word instance? Like if I want to call a save on the...
2
2843
by: eXtreme | last post by:
Does anyone know how to get the full URL filename from a Microsoft Web Browser control? I can use wbBrowserObj.LoctionURL to get the path but it seems to be missing the file name... I need the specific filename that a person browses to using the web browser control. Thanks,
3
1133
by: Concorde7224 | last post by:
Hi, I am using Microsot Web Browser control in a VC++ (.net) desktop application (Windows forms application). How do I make this control transparent so that if I have any other control like Textbox under the Browser control, it is made visible (after making the browser transparent). -TIA-
1
1689
by: Bob | last post by:
I'm all of a sudden getting an access denied error on my web server when I access it from a browser: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\projmgmt\ede965f0\db1b3c5e\thwdzsif.dll' -- 'Access is denied. ' I understand that .NET was attempting to do a JIT compilation since this is a newer version (tested and ran well on another server). I also know that this is...
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.
4
372
by: Bootstrap Bill | last post by:
I have a Windows Form that uses the Microsoft WebBrowser control. If I load an HTML file into the control that contains Jscript code, can the Jscript code call a C# function in my Windows Form?
69
4197
by: Peter Olcott | last post by:
Does JavaScript represent its controls internally as Microsoft Windows controls, or does it build them from scratch like Java?
48
3362
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company (and for someone who has loved Microsoft as much as me, that takes something pretty bad!). I am a web developer, and only have access to one computer, which makes it hard to test for both IE6 and IE7. But even for people that have access to...
1
2893
by: prm928 | last post by:
I have 3 Access versions (2000, 2002, 2003) on an XP machine. I'm using Access 2000 for some development which will include use of the Microsoft Internet Browser control. However, when attempting to select that control from the "More Controls" list, I don't see "Microsoft Internet Browser". Does anyone know the actual filename of this control, and how I might have lost it, and how I might reinstall it? Thanks prm928
0
10996
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
10658
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
10718
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
9497
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
7889
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
7062
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
5730
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...
1
4541
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
4133
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.