user784295
user784295

Reputation: 63

How to tell if a web page has loaded with in a WebBrowser Control

I am trying to write a program that will tell my grandmother whether the internet is live or not. I know, I know, She just doesn't get it. So I want to create a program to load google.com or something and all I want the program to do is tell her whether the site was found or not. Is there a way to do this with the WebBrowser control?

I would really appreciate any help!

Thanks, Cecil

Upvotes: 1

Views: 172

Answers (1)

SLaks
SLaks

Reputation: 888185

You should use the Ping class.

Call Ping.Send("google.com") and check whether Status is Success.

Upvotes: 2

Related Questions