I've used the CommonDialog to get a path to a file.

It's working and I get back a path like:

"C:\test\test1\test.txt"

From the the ".FileName"

I only need the path though..... umm, I guess I was wondering the best way to get it to work.


I'm really just trying to get a path to an application from the user. I have the application name as the only filter selected - so the user has to either cancel or find the right file (so I know the path is valid).