开发者

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

I am trying to write a program that wil开发者_运维问答l 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


You should use the Ping class.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜