Yes, but you will need to read up on Delegates.
It would then work out something like:
Public Sub StartThread(ByVal myProc as Delegate)
Dim myThread As New Thread(myProc)
and you would call it with something like:
Get the idea?
The same concept can be used to pass event handlers as parameters.
"buu" <aha@xxxxxx> wrote in message news:fqtnmq0bah@xxxxxx
> So, I have a new thread creating something like:
> dim myThread as new System.Threading.Thread(AddressOf myProcedure)
> but, could I send an any kind of parameter instead of call to
> I don't know did I made myself clear, but I would like to have something
> public sub StartThread(byref myProc as Object)
> dim myThread as new System.Threading.Thread(AddressOf myProc)
> end sub