public GridErrorDlg(PropertyGrid owner) { ownerGrid = owner; expandImage = DpiHelper.GetBitmapFromIcon(typeof(ThreadExceptionDialog), "down"); if (DpiHelper.IsScalingRequired) { DpiHelper.ScaleBitmapLogicalToDevice(ref expandImage); } collapseImage = DpiHelper.GetBitmapFromIcon(typeof(ThreadExceptionDialog), "up"); if (DpiHelper.IsScalingRequired) { DpiHelper.ScaleBitmapLogicalToDevice(ref collapseImage); } InitializeComponent(); foreach (Control c in this.Controls) { if (c.SupportsUseCompatibleTextRendering) { c.UseCompatibleTextRenderingInt = ownerGrid.UseCompatibleTextRendering; } } pictureBox.Image = SystemIcons.Warning.ToBitmap(); detailsBtn.Text = " " + SR.ExDlgShowDetails; details.AccessibleName = SR.ExDlgDetailsText; okBtn.Text = SR.ExDlgOk; cancelBtn.Text = SR.ExDlgCancel; detailsBtn.Image = expandImage; }