?
Solved

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

Posted on 2002-07-12
2
Medium Priority
?
240 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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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