By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,573 Members | 3,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,573 IT Pros & Developers. It's quick & easy.

AxBrowse (WebBrowser) questions...

P: n/a
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few
difficulties with it. Just looking for a few pointers, not whole solutions
here. I've tried looking at the MSDN help files with little success.

- When a new window is trying to pop up, how do I determine the target URL?
How can I get the page to open in the current browser control?

- When printing from the webbrowser control is there a way to ensure it
prints the whole page, including frames?

- How can I "scrape" the web document for data? If frames are involved what
extra programming do I need to do?

- How can I prevent a webpage from resizing the webBrowser control? I know
about the
WindowSetWidth, etc., events but I can't see a way to cancel the event.

- A few website work fine in IE, but do not work in the WebBrowser control.
These pages usually involve some kind of login. (These are Intranet sites so
I can't provide an example URL). Are there any settings or issues that could
be causing this? Cookies/Sessions? Browser identification? What can I do to
make my WebBrowser look like an IE window to web apps?

- Is there another browser control than the AxBrowse control that is freely
available?

Thanks!

Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
If you're using a 3rd-party control you have to go to them
for documentation. Did you know there's a VB WebBrowser
control? It's essentially an IE window, with properties nearly
identical to the InternetExplorer.Application object. You can get it
by adding a reference to "Microsoft Internet Controls". (It actually
shows up in both references and components windows. To pick
it from the components dialogue you can just browse to
SHDOCVW.DLL.
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few
difficulties with it. Just looking for a few pointers, not whole solutions
here. I've tried looking at the MSDN help files with little success.

- When a new window is trying to pop up, how do I determine the target URL? How can I get the page to open in the current browser control?

- When printing from the webbrowser control is there a way to ensure it
prints the whole page, including frames?

- How can I "scrape" the web document for data? If frames are involved what extra programming do I need to do?

- How can I prevent a webpage from resizing the webBrowser control? I know
about the
WindowSetWidth, etc., events but I can't see a way to cancel the event.

- A few website work fine in IE, but do not work in the WebBrowser control. These pages usually involve some kind of login. (These are Intranet sites so I can't provide an example URL). Are there any settings or issues that could be causing this? Cookies/Sessions? Browser identification? What can I do to make my WebBrowser look like an IE window to web apps?

- Is there another browser control than the AxBrowse control that is freely available?

Thanks!

Jul 17 '05 #2

P: n/a
Argh!

I'm an idiot...

I *AM* using the Microsoft Internet Controls... No wonder I was having so
much trouble finding help. Of course I still have the same questions - just
about the VB WebBrowser control. : )

Thanks for making me take a second look.
"mayayana" <ma************@mindZZspring.com> wrote in message
news:UI***************@newsread3.news.atl.earthlin k.net...
If you're using a 3rd-party control you have to go to them
for documentation. Did you know there's a VB WebBrowser
control? It's essentially an IE window, with properties nearly
identical to the InternetExplorer.Application object. You can get it
by adding a reference to "Microsoft Internet Controls". (It actually
shows up in both references and components windows. To pick
it from the components dialogue you can just browse to
SHDOCVW.DLL.
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files with little success.

- When a new window is trying to pop up, how do I determine the target URL?
How can I get the page to open in the current browser control?

- When printing from the webbrowser control is there a way to ensure it
prints the whole page, including frames?

- How can I "scrape" the web document for data? If frames are involved

what
extra programming do I need to do?

- How can I prevent a webpage from resizing the webBrowser control? I know about the
WindowSetWidth, etc., events but I can't see a way to cancel the event.

- A few website work fine in IE, but do not work in the WebBrowser

control.
These pages usually involve some kind of login. (These are Intranet

sites so
I can't provide an example URL). Are there any settings or issues that

could
be causing this? Cookies/Sessions? Browser identification? What can I do

to
make my WebBrowser look like an IE window to web apps?

- Is there another browser control than the AxBrowse control that is

freely
available?

Thanks!


Jul 17 '05 #3

P: n/a
I don't know the answers to any of your questions offhand,
but I can tell you this much: Once a page is loaded you can access
the document object as an mshtml.HTMLDocument. That provides
full access to the document object model of IE. Set a reference
to MSHTML.DLL to get object browser help and "intellisense" for
the DOM.

In the WB_DocumentComplete event sub do:

If Not WB.document Is Nothing Then
Set Doc = WB.document '-- where Doc has been declared as an
mshtml.HTMLDocument.

That will get you access to the page tags, body text, frames, etc.
in the same way that you can access them with DHTML.

-------------------------

The WB itself is the same as the InternetExplorer object. You
can check it in the object browser and should be able to find
both on MSDN (to the extent that one can find anything on MSDN).
It's true, though, that there's not much sample code around for
the WB.

--
--
Noozer <do*******@me.here> wrote in message
news:kKaoc.448196$Ig.419280@pd7tw2no...
Argh!

I'm an idiot...

I *AM* using the Microsoft Internet Controls... No wonder I was having so
much trouble finding help. Of course I still have the same questions - just about the VB WebBrowser control. : )

Thanks for making me take a second look.
"mayayana" <ma************@mindZZspring.com> wrote in message
news:UI***************@newsread3.news.atl.earthlin k.net...
If you're using a 3rd-party control you have to go to them
for documentation. Did you know there's a VB WebBrowser
control? It's essentially an IE window, with properties nearly
identical to the InternetExplorer.Application object. You can get it
by adding a reference to "Microsoft Internet Controls". (It actually
shows up in both references and components windows. To pick
it from the components dialogue you can just browse to
SHDOCVW.DLL.
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files with little success.

- When a new window is trying to pop up, how do I determine the target

URL?
How can I get the page to open in the current browser control?

- When printing from the webbrowser control is there a way to ensure it prints the whole page, including frames?

- How can I "scrape" the web document for data? If frames are involved

what
extra programming do I need to do?

- How can I prevent a webpage from resizing the webBrowser control? I know about the
WindowSetWidth, etc., events but I can't see a way to cancel the event.
- A few website work fine in IE, but do not work in the WebBrowser

control.
These pages usually involve some kind of login. (These are Intranet sites
so
I can't provide an example URL). Are there any settings or issues that

could
be causing this? Cookies/Sessions? Browser identification? What can I

do to
make my WebBrowser look like an IE window to web apps?

- Is there another browser control than the AxBrowse control that is

freely
available?

Thanks!



Jul 17 '05 #4

P: n/a
"Noozer" <do*******@me.here> wrote in message
news:m_Snc.438984$oR5.29230@pd7tw3no...
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few
difficulties with it. Just looking for a few pointers, not whole solutions
here. I've tried looking at the MSDN help files with little success.


Most VB programmers use shdocvw.dll for browser functionality. This
component is easy to program, is *almost always* avaliable on the client,
and is free. There are tons of resources on MSDN and sample code for
implementing this control. Good luck with your development effort.
Jul 17 '05 #5

P: n/a
Here's the URL for the WebBrowser control documentation:

http://msdn.microsoft.com/library/de...RefList_VB.asp
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.