how to get "OpenFileDialog" file name not path?

how to get "OpenFileDialog" file name not path
thanks.



Answer this question

how to get "OpenFileDialog" file name not path?

  • Lionel

    thanks so much.

  • Kapil

    Use System.IO.Path.GetFileName(dialog.FileName).

  • how to get "OpenFileDialog" file name not path?