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

common dialogs

Status
Not open for further replies.

mackey333

Technical User
May 10, 2001
563
US
how do i get the name of the file and it's path back from after 'open' is clicked in a common dialog (the open file one) -Greg :-Q

flaga.gif
 
Hi,

strFilePath = CommonDialog1.FileName
This returns the path and the file name

strFileName = CommonDialog1.FileTitle
This returns the file name only

Both of these properties are set when the user selects a file from an open dialog box

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top