Solved

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

Posted on 2002-07-12
2
215 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

14 Experts available now in Live!

Get 1:1 Help Now