G
Guest
I thought this would be a simple one but I can't quite figure it out.
I'm using the FolderBrowserDialog to select a path for file saving. Every
time the user changes the path, I want to grab the very last folder in that
path because it's used to generate automatic default file names. I'm trying
to find a built-in method for doing this but haven't found one. I thought
I'd find the answer in System.IO but can't quite seem to. I need something
analogous to GetRootFolder only I just need the last folder in the chain.
Anyway ideas? Thanks in advance.
I'm using the FolderBrowserDialog to select a path for file saving. Every
time the user changes the path, I want to grab the very last folder in that
path because it's used to generate automatic default file names. I'm trying
to find a built-in method for doing this but haven't found one. I thought
I'd find the answer in System.IO but can't quite seem to. I need something
analogous to GetRootFolder only I just need the last folder in the chain.
Anyway ideas? Thanks in advance.