This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code based on the code provided by @kpreisser here - https://github.com/microsoft/dotnet-framework-early-access/issues/23#issuecomment-393134611 | |
// Add COMException support | |
using System.Runtime.InteropServices; | |
// Upgrade any of the following: | |
// if (xxx.ShowDialog() == DialogResult.OK) | |
// to use the following instead: | |
System.Windows.Forms.DialogResult result; | |
try |