|
-
Mar 5th, 2004, 04:46 PM
#1
Thread Starter
New Member
OpenFileDialog.Filename string
Greetings everyone.
I am trying writing a simple program that opens an image file in a pictureBox and displays its filename in a label below the picture.
At the moment i am setting the filename label like this:
picFileNameLabel.Text = OpenFileDialog.FileName
This gives a result like "C:\blah\blah\mypics\file.jpg". I am more hoping to get just the filename i.e "file.jpg"
Does anyone know of an easy way to do this?
Cheers
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
|