I have follow your instruction to run the program, but the vb 2005 complaint variable 'msg' is passed by reference before it has been assigned a value. a null reference exception could result at runtime, which this line of code
If IsWebConnected(msg) Then