PC Review


Reply
Thread Tools Rate Thread

getting filename of OpenFileDialog

 
 
=?Utf-8?B?Z2VvcmcgYW5kZXJzc29u?=
Guest
Posts: n/a
 
      26th Nov 2004
hi

the property OpenFileDialog.FileName returns the path and the filename of
the selected file. how do i get only the filename (without the path in front)?

best regards

georg
 
Reply With Quote
 
 
 
 
Micael Baerens
Guest
Posts: n/a
 
      26th Nov 2004
Hello georg,

> the property OpenFileDialog.FileName returns the path and the filename
> of the selected file. how do i get only the filename (without the
> path in front)?


Use the static methods on the System.IO.Path class on the filename.

Kind Regards,
Micael Baerens (removethis-(E-Mail Removed))

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get filename from OpenFileDialog Luigi Microsoft Dot NET Framework Forms 2 19th Oct 2008 09:59 PM
OpenFileDialog filename Luigi Microsoft Dot NET Framework Forms 2 14th Oct 2008 02:50 PM
OpenFileDialog filename Luigi Microsoft Dot NET Framework Forms 0 14th Oct 2008 09:01 AM
Get OpenFileDialog filename path... SpreadTooThin Microsoft C# .NET 6 4th Jul 2008 06:56 PM
How to get the filename of openFileDialog ad Microsoft C# .NET 1 12th Jun 2005 08:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:00 PM.