Forum: VB.NET |
Thema:
Re: How to know that a thread has finshed. |
Von:
Theo Driemann (
17.04.2006 18:39) |
Dear Christian,
It is hard for me to follow the code you wrote, but it still works and I think it is even faster than my one. I added some lines, to catch errors when the program tries to access e.g. a system directory.
Christian, I don't want to tax you patience as much as necessary but I still have one questions.
I'm not be able to write the code to stop the Thread.
I added a button (Name: but_CancelThread), set in the form properties CancelButton=but_CancelThread but how can I set the me._Cancel to true ?
Public Sub [Stop]()
Me._Cancel = True
End Sub
I you have a time gap maybe you can answer my question.
mfg Theo
Betreff |
Von |
Datum |
|
|
G.
Guest
|
18.04.2006 08:56 |
|
  |
Re: How to know that a thread has finshed.
Dear Christian,<br>Maybe you have time to answer the my last 2 question.<br><br>First, the stop method wasn't working, until I declared Dim fs As New clsSearchFiles.FileSearcher(_StartupDir, New... |
 |
 |
 |
|
|
G.
Guest
|
20.04.2006 20:55 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!