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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: get current app filename & open a folder using diag. control

Status
Not open for further replies.

KostyaK

Programmer
Jan 23, 2003
5
CA
Plz, help. How can I get filename of my program? And how can I open a folder (path, not a file) using dialog controls?
ThanX.
 
How can I get filename of my program?

ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemreflectionassemblyclassgetnametopic.htm

And how can I open a folder (path, not a file) using dialog controls?

ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemwindowsformsopenfiledialogclasstopic.htm

These should get you started. The links are to the .NET documentation that should be on your machine. If they don't work for some reason, you can find the same info on the MSDN site -- search for "GetName" and "OpenFileDialog".

Chip H.
 
chiph, for the first link - thanX, what about OpenFileDialog - I know how to use it. But it opens a file, I need to open a directory (to get just any path or even drivename, etc.) Anyway, thanX.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top