Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WebBrowser control test Frame has loaded

Posted on 2009-05-10
3
Medium Priority
?
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:poweraddict
poweraddict earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

715 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