Multi-Threading in vb.net

angitapalli

Member
Joined
Mar 29, 2005
Messages
7
Programming Experience
1-3
Hi,

I have a question. The thread.abort() method raises an exeception. Is therea any way not to show the message "Thread is being aborted". I am creating a new thread for a method and when user clicks the stop button, I am aborting it. Everything works fine except that the message pops up two times. I did not put it in a try, catch block. But when I debug the code line by line, no message pops up and goes fine. Is there any other way to acheive this functionality like while a process is going on behind the form, user should be able to click another button on the same form?

Thanks in advance.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
i would stick with using the try/catch block since you know the exception will be thrown for the user and since it's only being aborted when the user clicks the stop button
 
Top Bottom