Solved

WebBrowser control test Frame has loaded

Posted on 2009-05-10
3
537 Views
Last Modified: 2012-06-27
Hi Experts,

What is the best way to test a frame has loaded into a webbrowser control.

I am trying the code below but it gives a 'Object reference not set to an instance of an object.' error.
If WebBrowser1.Document.Window.Frames("leftFrame").Document Is Nothing Then

 

End If

Open in new window

0
Comment
Question by:DColin
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:poweraddict
poweraddict earned 500 total points
ID: 24351379
See if this helps

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_22515250.html


there is also a webbrowser1.isBusy property im pretty sure
0
 

Author Comment

by:DColin
ID: 24361553
poweraddict:

Thanks for the link but I need to know when a specific frame has loaded not when the whole page has finished loading.
0
 

Accepted Solution

by:
DColin earned 0 total points
ID: 24634207
Hi Experts,

Found answer.
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
 

        ListBox1.Items.Add(e.Url)
 

End Sub

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now