From 929fc8e4f16de58e6941ee5e04aacc0ea2bc28f6 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 7 May 2014 20:37:41 +0200 Subject: [PATCH] More high-DPI fixes. --- .../Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs | 3 +++ src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs b/src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs index e61fdc445c..79f1163c0a 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs @@ -47,6 +47,7 @@ namespace ICSharpCode.SharpDevelop.Services this.pictureBox.Size = new System.Drawing.Size(48, 52); this.pictureBox.TabIndex = 0; this.pictureBox.TabStop = false; + this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; // // lblExceptionText // @@ -113,6 +114,8 @@ namespace ICSharpCode.SharpDevelop.Services // // DebuggeeExceptionForm // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.ClientSize = new System.Drawing.Size(642, 399); this.Controls.Add(this.btnContinue); this.Controls.Add(this.btnBreak); diff --git a/src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs b/src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs index 2f6640bddd..5bb84747ee 100644 --- a/src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs +++ b/src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs @@ -137,7 +137,8 @@ namespace ICSharpCode.IconEditor // // EditorPanel // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.Controls.Add(this.table); this.Controls.Add(this.panel2); this.Name = "EditorPanel";