private DlgBox() {} // To remove the constructor from the documentation!
///////////////////////////////////////////////////////////////////////
// CommonDialog
/// <summary>
/// Show a command dialog box at the center of the active window.
/// </summary>
public static DialogResult ShowDialog(CommonDialog dlg)
{
CenterWindow centerWindow = new CenterWindow(IntPtr.Zero);
DialogResult dlgResult = dlg.ShowDialog();
centerWindow.Dispose();
return dlgResult;
}