<i>Start a new ActiveX Document project. UserDocument1 is added by default. Add the following code to the general declarations section of UserDocument1: Dim bOffline As Boolean Private Function get_Offline() As Boolean ' (VARIANT_BOOL * bOffline) Dim hr As Long Dim ci As INTERNET_CONNECTED_INFO Dim ci_len As Long ci_len = 8 Dim ret As Long ret = InternetQueryOption(0&, INTERNET_OPTION_CONNECTED_STATE, _ ci, ci_len) get_Offline = Not ((ci.dwConnectedState And INTERNET_STATE_CONNECTED) = INTERNET_STATE_CONNECTED) End Function Private Sub put_Offline(bOffline As Boolean) Dim hr As Long Dim ci As INTERNET_CONNECTED_INFO Dim ret As Long If bOffline Then ci.dwConnectedState = INTERNET_STATE_DISCONNECTED_BY_USER ci.dwFlags = ISO_FORCE_DISCONNECTED Else ci.dwConnectedState = INTERNET_STATE_CONNECTED End If ret = InternetSetOption(0&, INTERNET_OPTION_CONNECTED_STATE, _ ci, LenB(ci)) End Sub </i>Can anyone help me figure out how to call this from VFP?