Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET Console Application StartUpPath method

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Guys,
The following is not recognized, I get a squiggly line under Application.
Dim Result As String = Application.StartupPath

This is apparent in a VB.NET Windows application but NOT in a VB.NET Console application.

What can I use for a VB.NET console application to get the path for the startup directory.

Regards
 
imports system.windows.forms

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Application is a member of System.Windows.Forms


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
figured it out. I added a reference to the dll.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top