Throwback on an old project and needing to use VB6. I'm having an issue in referencing the appropriate DLL that contains System.IO in the old VB6 IDE.
I have tried to reference: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll - error: Can't add reference to specified file
Added a reference to C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.tlb - doesn't work.
Added reference to C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.tlb - there is no System.IO from the intellisense.
Can someone please post the step-by-step instructions?
Got this somewhat working with:
There is, however, an
Overflow
exception being thrown when trying to calculate the number of free bytes.I would like to get this working with
My.Computer.FileSystem
. Suggestions?