i have the following code which I am having trouble with.
what I need to do is pass viriables to the function the thread will be executing
here's what I have so far
Public Function startdlthread(ByRef url As String, ByRef LocalFilename As String, ByRef filecount As Short)
dlthread = New System.Threading.Thread(AddressOf DownloadFile(url, LocalFilename, filecount))
dlthread.Start()
End Function

this is the what i get for an error
AddressOf operand must be the name of a method; no parentheses are needed.

what am i missing here ?