Return JUST the filename of OpenFileDialog1.Filename

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Greetings,

I am looking to get the filename (not the entire path) of the file chosen in
my OpenFileDialog1. Can this be done? Thanks,

-Dave
 
Sergey,

So, would the code be:

System.IO.Path.GetFileName(OpenFileDialog1.Filename) ?

Thanks,

-Dave
 
Back
Top