سؤال

I am using a button to get details about a directory that is selected by the user using something like OpenFileDialog in C#. At the moment I can only select a file and get the full pathway of that file. Is there a way that I can just get pathway without having to select a file or even trim the file name off the end of the pathway?

هل كانت مفيدة؟

المحلول

You're looking for FolderBrowserDialog.

You should also look at the functions in the Path class.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top