FolderBrowserDialog - Win32Exception occurred - The parameter is incorrect

前端 未结 3 2123
再見小時候
再見小時候 2021-02-14 23:09

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:11

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

提交回复
热议问题