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

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -