A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

webBrowser control, how to detect user is not connected to interne



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 7th 08, 02:14 AM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default webBrowser control, how to detect user is not connected to interne

Hi,

I have a from which has a System.Windows.Forms.WebBrowser control in there.
my question is How can I tell the user is not connected to internet?

Currently I am trying to get the webBrowser.DocumentText or
WebBrowser.DocumentTitle and try to see if the content of the DocumentText
has some error message in there during DocumentCompleted event. but this is
kind of stupid and what if the user is using a Non-English windows OS?

Thanks.
Ads
  #2  
Old November 7th 08, 03:17 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default webBrowser control, how to detect user is not connected to interne

There really isn't a perfect way to tell if the user is or isn't connected
to the Internet. You can try a ping call to a known IP address, but that
would produce misleading results if for some reason that one site wasn't
available due to some sort of DNS or server problems. I usually try a couple
of sites such as www.google.com and www.microsoft.com to see about an
Internet connection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I have a from which has a System.Windows.Forms.WebBrowser control in
there.
my question is How can I tell the user is not connected to internet?

Currently I am trying to get the webBrowser.DocumentText or
WebBrowser.DocumentTitle and try to see if the content of the DocumentText
has some error message in there during DocumentCompleted event. but this
is
kind of stupid and what if the user is using a Non-English windows OS?

Thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
take control of calender for user that does not exist. SLickest3 Outlook - Calandaring 0 August 5th 08 05:13 PM
publishing different caledars on the interne Ruud Stam Outlook - Calandaring 0 February 22nd 08 09:41 AM
How to detect a user-deleted AppointmentItem? OctopusThu Add-ins for Outlook 6 December 21st 06 02:20 PM
Outlook 2003 gets not connected error but status is connected [email protected] Outlook - General Queries 0 May 28th 06 01:28 AM
Detect other user viewing calendar items [email protected] Outlook and VBA 1 April 20th 06 09:00 PM


All times are GMT +1. The time now is 06:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.