Question about WebBrowser VB.NET

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Question about WebBrowser VB.NET

  1. #1
    Join Date
    Oct 2005

    Question about WebBrowser VB.NET

    I want to open site via WebBrowser .
    I want fast way to know the my page opened or no.

    some times internet connection has problem if that happen I want stop the program.

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Add a handler for the WebBrowser's DocumentComplete event. When the event fires, you know the page opened successfully. If it doesn't fire within a reasonable length of time (say, 30 seconds) after you execute the .Navigate method, then the page did not open.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Oct 2005
    Thank Phil Weber ,But if happen any error like "Cannot find server" also DocumentComplete event will be work .

    Becouse that temprary I will used page title

    If WebBrowser1.Document.Title = "Cannot find server" Then
    end if

    Thank again

Similar Threads

  1. VB.Net: Tabcontrol and webbrowser control
    By geertvdijk in forum .NET
    Replies: 32
    Last Post: 12-17-2009, 10:33 PM
  2. Replies: 2
    Last Post: 05-03-2006, 03:53 PM
  3. Why I like VB.NET
    By Tom Cabanski in forum .NET
    Replies: 74
    Last Post: 03-14-2001, 03:30 PM
  4. Is VB.Not still a BEGINNERS' language?
    By Mark Burns in forum .NET
    Replies: 164
    Last Post: 03-13-2001, 12:43 PM
  5. VB.NET: 3 points of view
    By David Kroll in forum .NET
    Replies: 33
    Last Post: 02-13-2001, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center