I'm working on a piece of client software which uses inet to login, for example

login = netClient.OpenURL("http://www.exampleurl.com/_login.asp?userid=" & userid)

the page then returns a 1 or a 0 and the program checks to make sure the login was successful etc.

the problem is when i close the program, it freezes, this is especially frustrating because i have to ctrl-alt-del the development ide everytime i test the program. ive tryed everything i can think of including netClient.cancel and making a doevents loop for netClient.StillExecuting but it still freezes everytime i exit

Please help i'd be very grateful