6 writes to deviceDpi
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Control.cs (3)
494deviceDpi = DpiHelper.DeviceDpi; 8732deviceDpi = (int)UnsafeNativeMethods.GetDpiForWindow(new HandleRef(this, HandleInternal)); 13423deviceDpi = (int)UnsafeNativeMethods.GetDpiForWindow(new HandleRef(this, HandleInternal));
winforms\Managed\System\WinForms\Form.cs (1)
5160deviceDpi = e.DeviceDpiNew;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6103this.deviceDpi =
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
744item.dropDown.deviceDpi = newDpi;
26 references to deviceDpi
System.Windows.Forms (26)
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
86return control.deviceDpi / DpiHelper.LogicalDpi;
winforms\Managed\System\WinForms\ComboBox.cs (1)
5933int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.deviceDpi);
winforms\Managed\System\WinForms\ContainerControl.cs (2)
324currentAutoScaleDimensions = new SizeF((float)deviceDpi, (float)deviceDpi);
winforms\Managed\System\WinForms\Control.cs (9)
2243return deviceDpi; 7759SafeNativeMethods.AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle, (uint)deviceDpi); 8731int old = deviceDpi; 8733if (old != deviceDpi) { 8734RescaleConstantsForDpi(old, deviceDpi); 13422int deviceDpiOld = deviceDpi; 13427if (deviceDpiOld != deviceDpi) { 13432var factor = (float)deviceDpi / deviceDpiOld; 13437RescaleConstantsForDpi(deviceDpiOld, deviceDpi);
winforms\Managed\System\WinForms\Form.cs (2)
5159DpiChangedEventArgs e = new DpiChangedEventArgs(deviceDpi, m); 5190if (OnGetDpiScaledSize(deviceDpi, NativeMethods.Util.SignedLOWORD(m.WParam), ref desiredSize)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
291btnDropDown.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight); 315btnDialog.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight); 4426Size sizeBtn = DpiHelper.EnableDpiChangedHighDpiImprovements? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight): 5187btnDropDown.Size = new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight); 6102var oldDpi = this.deviceDpi; 6105if (oldDpi != deviceDpi) { 6106RescaleConstantsForDpi(oldDpi, this.deviceDpi);
winforms\Managed\System\WinForms\TextBox.cs (2)
443scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(deviceDpi); 446scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(deviceDpi);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
947height += SystemInformation.GetBorderSizeForDpi(deviceDpi).Height * 4 + 3;
winforms\Managed\System\WinForms\VScrollBar.cs (1)
60return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(this.deviceDpi), LogicalToDeviceUnits(VERTICAL_SCROLLBAR_HEIGHT));