473,385 Members | 1,893 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,385 software developers and data experts.

Browser Control Events ?

meh
What are the best events to hide and unhide the progressbar when navigating
to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function the
way I would like them to. If I leave pBar.Visible = True the pBar seems to
be working just fine, but if I try to hide it when its not in use I dont get
to see it work. Any suggestions???

tia
meh
Nov 20 '05 #1
4 1231
Cor
Hi Meh,

Navigate2 to start is fine,

A webpage can exist in a lot of documents (frames) and therefore the first
documentcomplete says nothing (with framepages that is mostly a very small
document)

A webpage is ready (if it is well done by the makers) if the
navigatecomplete2 fires.

But if there are crazy pages between it can give a lot of strange
situations.

I hope this helps?

Cor
What are the best events to hide and unhide the progressbar when navigating to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function the way I would like them to. If I leave pBar.Visible = True the pBar seems to be working just fine, but if I try to hide it when its not in use I dont get to see it work. Any suggestions???

Nov 20 '05 #2
meh
thx Cor

meh

"Cor" <no*@non.com> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
Hi Meh,

Navigate2 to start is fine,

A webpage can exist in a lot of documents (frames) and therefore the first
documentcomplete says nothing (with framepages that is mostly a very small
document)

A webpage is ready (if it is well done by the makers) if the
navigatecomplete2 fires.

But if there are crazy pages between it can give a lot of strange
situations.

I hope this helps?

Cor
What are the best events to hide and unhide the progressbar when

navigating
to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function

the
way I would like them to. If I leave pBar.Visible = True the pBar seems

to
be working just fine, but if I try to hide it when its not in use I dont

get
to see it work. Any suggestions???


Nov 20 '05 #3

In my experience, Navigate2 is not generally reliable. It works
some/much of the time, but not always. Neither is DocumentComplete.
The best technique I've found is to check the dispatch object on
DocumentComplete = IE main window. Note that even this fails for
pages that have active control of their rendering fired by the frame's
onload event. There is a note in the KB (unfortunately I've lost
track of it, but look for pDisp and DocumentComplete) that is helpful.

Regards

On Sun, 29 Feb 2004 23:36:47 +0100, "Cor" <no*@non.com> wrote:
Hi Meh,

Navigate2 to start is fine,

A webpage can exist in a lot of documents (frames) and therefore the first
documentcomplete says nothing (with framepages that is mostly a very small
document)

A webpage is ready (if it is well done by the makers) if the
navigatecomplete2 fires.

But if there are crazy pages between it can give a lot of strange
situations.

I hope this helps?

Cor
What are the best events to hide and unhide the progressbar when

navigating
to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function

the
way I would like them to. If I leave pBar.Visible = True the pBar seems

to
be working just fine, but if I try to hide it when its not in use I dont

get
to see it work. Any suggestions???


Nov 20 '05 #4
meh
Hi Guys;

Because I'm using the browser control on a child of a MDI app the thing
thats giving me the best results right now is the
OnLostFocus

event of the child. This seems to work the best for this app. It still is
not exacly what I was looking for but it works.

Thanks for all the great ideas......

meh

"Cor" <no*@non.com> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
Hi Meh,

Navigate2 to start is fine,

A webpage can exist in a lot of documents (frames) and therefore the first
documentcomplete says nothing (with framepages that is mostly a very small
document)

A webpage is ready (if it is well done by the makers) if the
navigatecomplete2 fires.

But if there are crazy pages between it can give a lot of strange
situations.

I hope this helps?

Cor
What are the best events to hide and unhide the progressbar when

navigating
to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function

the
way I would like them to. If I leave pBar.Visible = True the pBar seems

to
be working just fine, but if I try to hide it when its not in use I dont

get
to see it work. Any suggestions???


Nov 20 '05 #5

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

Similar topics

4
by: John Bowman | last post by:
Hi, How can I disable the right click capability of the Web Browser control that's on a form? I only want it to display the HTML, w/ no popup menu. TIA, -- John C. Bowman
1
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...
6
by: Rob Heckart | last post by:
Hi, I'm using the Portal ASP.NET starter kit for a project. It uses one aspx page, DesktopDefault.aspx to render content by loading different user controls depending on what's clicked. One of my...
0
by: Sudhakar S P | last post by:
Using Microsoft Web Browser control with windows form in VB.NET 2003 I have problem getting events to work properly, can anyone help me here, 1. Reading the data from the database, looping...
15
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is:...
2
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless...
7
by: dwandless | last post by:
I have successfully installed a BHO in IE7. Using C#. Now I'm trying to figure out how to trap various events. onkeypress, oncut, oncontextmenu, etc. I have tried calling in various...
7
by: =?iso-8859-1?q?Jesper_R=F8nn-Jensen?= | last post by:
Hi. I just ran into a situation where I want to emulate the IE specific obj.click() syntax on an object on the webpage. The most convenient thing for me is if I were able to just select my ...
2
by: AdamOnAccess | last post by:
Hi, I'm trying to find an event in the web browser control that triggers when the user clicks on a link inside the control and arrives at a new page. My web browser control only shows 5 events...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...
0
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...

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.