passing data to a thread from a form

Instead of using a class/method/delegate to pass data from a form to a thread...

why not pass the data to a thread "ByRef"

comments please

thanks





Answer this question

passing data to a thread from a form

  • New_to_Vb_studio

    The problem is that a thread must be started with a function that has no parameters, so data is not being passed "ByVal" or "ByRef". That is why you will see the examples that will create a class to hold data used by the thread.

  • passing data to a thread from a form