PC Review


Reply
Thread Tools Rate Thread

Browser Control Events ?

 
 
meh
Guest
Posts: n/a
 
      29th Feb 2004
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


 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      29th Feb 2004
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???
>
>



 
Reply With Quote
 
meh
Guest
Posts: n/a
 
      29th Feb 2004
thx Cor

meh

"Cor" <(E-Mail Removed)> wrote in message
news:u82VlTx$(E-Mail Removed)...
> 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???
> >
> >

>
>



 
Reply With Quote
 
Richard Bell
Guest
Posts: n/a
 
      29th Feb 2004

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" <(E-Mail Removed)> 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???
>>
>>

>


 
Reply With Quote
 
meh
Guest
Posts: n/a
 
      1st Mar 2004
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" <(E-Mail Removed)> wrote in message
news:u82VlTx$(E-Mail Removed)...
> 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???
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete events/procedures of control if control is deleted at design time in VB.Net 2005 ? Luqman Microsoft VB .NET 1 30th Jun 2006 08:15 PM
How can I make a control show inherited events from System.Windows.Forms.Control Ralph Krausse Microsoft Dot NET Framework Forms 1 13th Nov 2004 09:21 PM
Problem handling events with web browser control Reid Microsoft VB .NET 5 5th Jun 2004 01:00 AM
Translating child events into parent-control events Scott McChesney Microsoft VB .NET 0 7th May 2004 04:11 PM
WebBrowser control capture DHTML events disables browser? Sree Windows XP Internet Explorer 0 9th Jan 2004 07:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.