I'm trying to let the user choose a folder, here is my code
using (var fbd = new FolderBrowserDialog())
{
fbd.RootFolder = Environment.SpecialFolder.MyComputer;
DialogResult result = fbd.ShowDialog();
if (result == DialogResult.OK)
{
//Code
}
}
However, it appears that DialogResult
contains no extension of .OK
, I've looked around at some other questions, however none of them seem to work.
Answers tried: DialogResult.OK on SaveFileDialog not work, DialogResult with FolderBrowserDialog in WPF.
I'm probably missing something very obvious...