Method does not have the same signature as delegate

A

Armin Zingler

Am 04.03.2010 03:43, schrieb ketia kem:
Dim wsThread As ThreadStart = New ThreadStart(AddressOf readFile.Read_File)

Show us (signature of) readFile.Read_File.
 
G

Göran Andersson

ketia said:
Dim wsThread As ThreadStart = New ThreadStart(AddressOf readFile.Read_File)

The ThreadStart delegate has no parameters and no return value, so the
signature of the Read_File method has to be something like:

Public Sub Read_File()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top