J
J E Jensen
Hello NG
On a property page that i have added to the outlook options form, i have a
button. And when the user clicks that button i want the FolderBrowserDialog
to open.
My code:
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
{
fbd.Description = "Select folder";
fbd.SelectedPath = DefaultFolder;
if (fbd.ShowDialog() == DialogResult.OK)
strReturn = fbd.SelectedPath;
}
It do not shows on the screen, if i pause the code it stops at the
If(fbd.ShowDialog() == DialogResult.OK) line. I think that Outlook can't
open a modal dialog from the property pages.
Is there another way to do that.
Kind regards
Johnny Jensen
On a property page that i have added to the outlook options form, i have a
button. And when the user clicks that button i want the FolderBrowserDialog
to open.
My code:
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
{
fbd.Description = "Select folder";
fbd.SelectedPath = DefaultFolder;
if (fbd.ShowDialog() == DialogResult.OK)
strReturn = fbd.SelectedPath;
}
It do not shows on the screen, if i pause the code it stops at the
If(fbd.ShowDialog() == DialogResult.OK) line. I think that Outlook can't
open a modal dialog from the property pages.
Is there another way to do that.
Kind regards
Johnny Jensen