Solved

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

Posted on 2002-07-12
2
217 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
2 Comments
 
LVL 4

Accepted Solution

by:
kpkp earned 100 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now