How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection
How to close Inet If No Internet Connection How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
Go Back  Xtreme Visual Basic Talk > > > How to close Inet If No Internet Connection


Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2012, 03:57 PM
lewp01 lewp01 is offline
Newcomer
 
Join Date: Oct 2005
Location: Omaha, Ne
Posts: 1
Default How to close Inet If No Internet Connection


I have a VB6 program that uses Inet to go out to an FTP site and downloads specific files. Most of the time this works very well.

However, if a PC has a firewall configured that blocks my program from going to the internet, the program looks in the following code....for days if I don't kill the program with Task Manager.

Do While frmIpicMenu.Inet1.StillExecuting
DoEvents
Loop

I know that I need to somehow get out of this loop (my code right now counts to 2000 and then goes out of this Loop) and then close/cancel the Inet session but I don't know how to do that.

I've tried: frmIpicMenu.Inet1.Execute , "CLOSE", but this doesn't seem to close the Inet process because I get an error message that says "Still executing last request"

Is there anyway to stop the process while I am in the StillExecuting loop?

Any help would be greatly appreciated.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
 
How to close Inet If No Internet Connection
How to close Inet If No Internet Connection
 
-->