private void ReportError_Load(object sender, EventArgs e) { try { this.Font = SystemFonts.MessageBoxFont; this.ImageIcon.Image = SystemIcons.Error.ToBitmap(); } catch { // Just show the dialog with the default font & without an icon } }