![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |