View Single Post
  #5 (permalink)  
Old 12-02-2008, 10:16 AM
Adagio Adagio is offline
VB.NET Forum Fanatic
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Dec 2005
Posts: 133
Reputation: 56
Adagio is on a distinguished programming path ahead
Default

In my example closing the form should without warning kill the thread (like if the user presses the cancel button or the big fat red X). It's just that from the users point of view the thread (which searches for items) should end if the ESC key is pressed (or close the form if no search is in progress)
Seems like the above solution works great
Reply With Quote