SyntaxFix
Write A Post
Hire A Developer
Questions
Use: Path.GetFileName Method
var onlyFileName = System.IO.Path.GetFileName(ofd.FileName);