This fixes potential issues where a window will be shown, and the application will assign it to a different form's thread.
The CommonOpenFileDialog had an issue where ShowDialog(IntPtr) couldn't be used because there was another overload with one argument that references a WPF Window class. To resolve this, the overload can be forced by using the parameter name for the IntPtr argument.
CommonOpenFileDialog
had an issue whereShowDialog(IntPtr)
couldn't be used because there was another overload with one argument that references a WPFWindow
class. To resolve this, the overload can be forced by using the parameter name for theIntPtr
argument.