diff --git a/src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintControllerWithStatusDialog.StatusDialog.cs b/src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintControllerWithStatusDialog.StatusDialog.cs index fbac5f50ee3..d3a6a75448c 100644 --- a/src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintControllerWithStatusDialog.StatusDialog.cs +++ b/src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintControllerWithStatusDialog.StatusDialog.cs @@ -36,7 +36,6 @@ private void InitializeComponent() _cancellingTextBox = new TextBox() { - AutoSize = true, Location = new Point(8, 16), BorderStyle = BorderStyle.None, ReadOnly = true, @@ -82,6 +81,7 @@ private void InitializeComponent() ControlBox = false; MinimizeBox = false; ClientSize = ScaleHelper.ScaleToDpi(new Size(256, 122), ScaleHelper.InitialSystemDpi); + _cancellingTextBox.Width = ClientSize.Width; CancelButton = _cancelButton; SizeGripStyle = SizeGripStyle.Hide;