thanks for your reply. ive been trying to get your suggestion working. the only problem is that when i use this:

Code:
ThreadPool.QueueUserWorkItem(AddressOf WC.FindMyPort)
if get a blue squiggly line uner WC.FindMyPort and the error is:
Method 'Public sub FindMyPort(...)' does not have a signature compatible with delegate 'Delegate sub waitcallback(State as Object)'

what does this mean? and how do i fix it?

thanks
jason