How to force an event to cancel

  • Thread starter Thread starter NET CF Questions
  • Start date Start date
N

NET CF Questions

We're looking for a method that will force a cancel on an event.

For example, if a search on a db is taking too long, the user can
press a button and cancel it and do a search on a more limited
dataset.

VB, VS 2005, .NET .CF 2.0 SP2
 
That's not an event, that's a method, and they are significantly different
from one another. You need to make an asynchronous call. Since we have no
idea what you're doing, the "how" can vary, but generally speaking you'll
either use an async method on the object if it exists (BeginXxxx) or you'll
spawn a worker thread and make it async yourself.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Back
Top