WinForms: Why do I get InvalidCastException when showing folder browser dialog?
- by Marek
I am randomly getting InvalidCastException when showing FolderBrowserDialog and also many clients have reported this.
I have not been able to find anything relevant on the internet. Does anyone know what causes this/how to fix this?
My code:
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
{
…