winforms - C# FilePath Help -


i use openfiledialog search specific file. when user chooses file, want store path in variable. however, these doesn't seem option within openfiledialog?

does know how this?

thanks.

edit: winforms, , don't want save path inclusive of filename, location file is.

this retrieve path based on filename property of openfiledialog.

string path = system.io.path.getdirectoryname(openfiledialog.filename); 

Comments

Popular posts from this blog

forms - Secure PHP File Upload Script -

PHP: Exploding array elements -

java - How do I override the spring framework version in Spring Batch? -