Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2006

Tip: Looking for answers? Try searching our database.

OpenFileDialogue question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ6 - 12 May 2006 21:56 GMT
I just want the name of the file selected - I have no use for opening it up
in a stream.

Is there a built-in dialogue I can use to select a file, or do I need to
write my own? If so, are there any simple examples out there?

TIA,
Paul
Michael Bosch - 12 May 2006 22:05 GMT
You would use the same OpenFileDialog, it exposes a property FileName which
will give you the full path/name of the file selected.  Or use FileNames if
you have multiselect set to true...

Regards,

Michael Bosch

>I just want the name of the file selected - I have no use for opening it up
>in a stream.
[quoted text clipped - 4 lines]
> TIA,
> Paul
Herfried K. Wagner [MVP] - 12 May 2006 23:10 GMT
"Michael Bosch" <dotnetmichael@gmail.com> schrieb:
> You would use the same OpenFileDialog, it exposes a property FileName
> which will give you the full path/name of the file selected.  Or use
> FileNames if you have multiselect set to true...

ACK.  If you want to strip off the path and get the file name part only,
check out the shared methods of 'System.IO.Path'.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

PJ6 - 13 May 2006 17:14 GMT
I think I want to add a new word to the English language. One that means,
"when one looks for a property or method in an intellisense list, but for
some strange reason cannot find it even though it's plainly there".

> You would use the same OpenFileDialog, it exposes a property FileName
> which will give you the full path/name of the file selected.  Or use
[quoted text clipped - 12 lines]
>> TIA,
>> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.