-- -- Invoking a common dialog. -- module FileDialog where import NET selectFile :: IO String selectFile = do obj <- new "System.Windows.Forms.FolderBrowserDialog" (obj :: Object ()) # invoke_ "ShowDialog" () obj # getField "SelectedPath" ()