Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2002-07-12
2
Medium Priority
?
247 Views
Last Modified: 2010-04-14
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

0
Comment
Question by:npnp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
kpkp earned 400 total points
ID: 7149914
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
 

Author Comment

by:npnp
ID: 7150048
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question