Colleagues,
I'm building a class library of common/generic functions I'm going to use in my future projects. Some of them were already used in the projects made in VS 2012 - and worked.
One of them uses My.Computer in the project made in WinForms. Here's the code (part of the function that counts files in the given directory):
I copy-pasted this function from that VS 2012 project into VS 2019 one... and it now gives me this error:
Here's the imports list:
I suspect that My exists only for a form, but I'm not sure. VS 2019 Help search didn't bring any relevant finds...
Q.: what am I missing?
Please advise.
Regards,
Ilya
I'm building a class library of common/generic functions I'm going to use in my future projects. Some of them were already used in the projects made in VS 2012 - and worked.
One of them uses My.Computer in the project made in WinForms. Here's the code (part of the function that counts files in the given directory):
Code:
For Each lsFile As String In My.Computer.FileSystem.GetFiles(tsDir, lnSubDirs, lcFilePattern)
lnCnt = lnCnt + 1
Next
Here's the imports list:
I suspect that My exists only for a form, but I'm not sure. VS 2019 Help search didn't bring any relevant finds...
Q.: what am I missing?
Please advise.
Regards,
Ilya