PC Review


Reply
Thread Tools Rate Thread

How to Cancel a long process

 
 
Ofer B.
Guest
Posts: n/a
 
      12th Sep 2003
Hi
I need to download a file from the internet, and than insert the file to
SqlCe database, this process taks 2 to 4 minuts. (depend on the connection
to the internet)
How can I let the user the option to cancel this event in the middle ?
I can check a boolean variable while i'm in the loop but when this process
run, the pocket PC don't respond to a cansel button that set the boolean
variable
thanks
ofer


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      12th Sep 2003
You need to perform your long process in a separate thread, so that the user
interface continues to be active. When you are performing the long process
with the user interface thread, no event processing occurs, so the Cancel
button doesn't get handled.

Paul T.

"Ofer B." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
> I need to download a file from the internet, and than insert the file to
> SqlCe database, this process taks 2 to 4 minuts. (depend on the connection
> to the internet)
> How can I let the user the option to cancel this event in the middle ?
> I can check a boolean variable while i'm in the loop but when this process
> run, the pocket PC don't respond to a cansel button that set the boolean
> variable
> thanks
> ofer
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how long does it take to cancel a printing job? =?Utf-8?B?Z3oxMg==?= Microsoft Word Document Management 3 29th Oct 2006 04:07 PM
How to cancel a long query HJ Rodirguez Microsoft ADO .NET 3 25th Mar 2004 02:56 AM
Cancelling process with Cancel event VM Microsoft C# .NET 1 9th Feb 2004 08:36 PM
How to Cancel the process in between ? Gopal Prabhakaran Microsoft C# .NET 1 30th Jan 2004 07:03 AM
How to Cancel the process in between ? Gopal Prabhakaran Microsoft Dot NET Framework Forms 1 29th Jan 2004 12:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 AM.