I have been able to test your source code and then it turns on right, but then it does turn off right, about like I want it to do. Can you tell me how to get it to activate using a Timer. I was using a Timer's .Interval of about a one millisecond, just to be sure on the amount of time that it needed to fire up and then exectute just right. I didn't, so then I am going to post my source code, for you to have a good look at, if that would be alright with you, that is???
Code:
Option Explicit
'
Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Integer, ByVal dwReserved As Integer) As Integer
'
Private Sub Timer1_Timer()
cmd_VDir1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Word1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Spread1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_dBase1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Web1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Audio1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Desktop1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Movie1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Settings1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_New1.Enabled = CBool(InternetGetConnectedState(0, 0))
cmd_Open1.Enabled = CBool(InternetGetConnectedState(0, 0))
End Sub