Connecting and disconnecting [RESOLVED]

tich

Member
Joined
Jul 27, 2005
Messages
20
Location
Beirut,Lebanon
Programming Experience
3-5
Hey all,
I'm doing a program that connects to the internet and disconnects.
I looked in msdn i found that the HNetCfg.dll will do that so this is what i wrote:
[Dim Connection as NETCONLib.INetConnection
Connection.Connect()]
But this returns a NullReference Exception although they said in msdn that this method has no parameters!
Help!!!
:(
 
OK I'll chime in. I've tried to follow this thread but am unsure as to what the question is.
What is it you are trying to do? Are you trying to control a modem to connect and disconnect?
Please provide more information as to what you are doing.
 
Back
Top