Thanks. That did it. I changed the line to -
If FolderBrowserDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK
Then
Which works fine. Thanks again.
"Mattias Sjögren" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Jeffrey,
>
>>I took the code below from an example of FolderBrowserDialog but I keep
>>getting the subject diagnostic on DialogResult.OK and I can't figure out
>>what I am doing wrong.
>
> I think it's because the name "DialogResult" resolves to the form's
> DialogResult property (which returns an instance) rather than the
> System.Windows.Forms.DialogResult type. Try to fully qualify the type
> name.
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.