|
-
Oct 16th, 2006, 08:25 AM
#1
Thread Starter
Frenzied Member
Folder Dialog question
I am using the following to allow users to pick a file from their computer, however at the moment all it does is allow them to pick a Folder path but not a File and path.
Any ideas on how to make this work how I want?
VB Code:
Dim FilePath As String
Me.FolderBrowserDialog1.SelectedPath = "C:\Windows"
Me.FolderBrowserDialog1.ShowDialog()
FilePath = Me.FolderBrowserDialog1.SelectedPath.ToString
-
Oct 16th, 2006, 08:26 AM
#2
Re: Folder Dialog question
use the OpenFileDialog instead of the FolderBrowerDialog.
-
Oct 16th, 2006, 10:23 AM
#3
Thread Starter
Frenzied Member
Re: Folder Dialog question
Hmm, I dont actually want them to be able to open a file, I just want them to be able to select a file and return the filepath/filename. This is because I am actually making a mail app, which allows them to pick a file and add it as an attachment.
-
Oct 16th, 2006, 10:24 AM
#4
Re: Folder Dialog question
that is what the openfiledialog does...
its just has "open" in its name because its used for selecting a file that your app will most likely open...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|