can i create a thread to monitor a function, and then kill the function if it takes a long time to return?

i suppose, you have to deal with threads to do it. but how do you handle threads in vb?