File.xxx, Directory.xxx -- How to make work

Experienced VB6, new to .NET, using the temporary "evaluation" package.

When entering "File." or "Directory.", no drop-down list of methods appears.  For instance, if I type

If File.Exists(myPath) = True Then

"File.Exists" has that wiggly line beneath, meaning that .NET does not recognize it.

What do I do to make this sort of thing work?
Is there a Reference I need to add?

Please help -- Norm

npnpAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kpkpConnect With a Mentor Commented:
either use

System.IO.File.Exists()

or put this as the top of your file, to tell the comiler to use the System.IO package

Imports System.IO
0
 
npnpAuthor Commented:
Thank you!

It aggravates me that various information sources on topics such as this sort of assume the reader already knows this.

Thank you again. -- Norm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.