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

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    32

    Question about WebBrowser VB.NET

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

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

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    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
    http://www.philweber.com

    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
    Posts
    32
    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

    Code:
    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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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