I have opened a project built with VS2010 in VS2017.
The code hasn't changed and the 2010 version built perfectly but when building with 2017 I get a 'Reference to a non-shared member requires an object reference' error with the following code.
Dim doCheck As New System.Threading.Thread(AddressOf Check_Form.checkList)
doCheck.SetApartmentState(ApartmentState.STA)
doCheck.Start(thisname & "~" & thisnum)
The 'AddressOf' part throws the error.
Has something changed in VS2017 or have I forgotten to amend something? It's been a while since I looked at this but I've got a new signing certificate and the System.Threading is imported as always.
The Check_Form.checkList sub is public but not shared but it never has been in the past and always ran ok.
Thanks.