Spli File Path

L

Laserson

Hi all! For example i have a open file dialog called "Dialog_Open" and i
use following code:

If Dialog_Open.ShowDialog=DialogResult.Ok Then
Label_FileName.Text=Dialog_Open.FileName
End If

but FileName returns the full path of file, but i need only opened file
name and extension, for example not "C:\Sample\ReadMe.txt", but
"ReadMe.txt". How to do that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top