No accessible 'New' accepts this number of arguments - Error
I have this chunk of code
Dim _timer As System.Threading.Timer
Public Sub RunTimer2()
_timer = New System.Threading.Timer(onSave(),
Nothing,
TimeSpan.FromSeconds(5),
TimeSpan.FromSeconds(5))
End Sub
and I get error Overload resolution failed because no accessible 'New'
accepts this number of arguments. for the line where I am trying to create
the timer. Although I can see in the documentation in msdn and in the
libraries that it has those 4 possible types parameters that I use. I
don't get it...
No comments:
Post a Comment