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