public HostWaitDialog(string format, string caption) { try { _theDialog = new VSImpl.VSWaitDialog(format, caption); } catch (FileNotFoundException) { _theDialog = null; } }