FolderBrowserDialog - Win32Exception occurred - The parameter is incorrect

前端 未结 3 1972
天涯浪人
天涯浪人 2021-02-14 23:37

I try to use the FolderBrowserDialog from WPF like this:

public static bool BrowseFolder(out string folderName)
{
   using (System.Windows.Forms.FolderBrowserDia         


        
3条回答
  •  伪装坚强ぢ
    2021-02-15 00:14

    I do belive you need a windows forms host to run anything from the Windows.Forms namespace... try it out!

提交回复
热议问题