5 writes to _deviceDpi
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (3)
312
_deviceDpi
= _oldDeviceDpi = ScaleHelper.InitialSystemDpi;
7307
_deviceDpi
= (int)PInvoke.GetDpiForWindow(this);
11443
_deviceDpi
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
778
item._dropDown.
_deviceDpi
= newDpi;
System\Windows\Forms\Form.cs (1)
4523
_deviceDpi
= e.DeviceDpiNew;
29 references to _deviceDpi
System.Windows.Forms (29)
System\Windows\Forms\Control.cs (14)
338
InitializeConstantsForInitialDpi(
_deviceDpi
);
1606
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
_deviceDpi
: ScaleHelper.InitialSystemDpi;
5275
if (_oldDeviceDpi !=
_deviceDpi
&& OsVersion.IsWindows10_1703OrGreater())
5430
fontDpi =
_deviceDpi
;
6331
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
_deviceDpi
);
7305
int old =
_deviceDpi
;
7308
if (old ==
_deviceDpi
)
7313
if (fontDpi !=
_deviceDpi
)
7317
Font fontForDpi = GetScaledFont(localFont,
_deviceDpi
, fontDpi);
7329
RescaleConstantsForDpi(old,
_deviceDpi
);
11425
_oldDeviceDpi =
_deviceDpi
;
11445
if (fontDpi ==
_deviceDpi
)
11457
ScaledControlFont = GetScaledFont(localFont,
_deviceDpi
, fontDpi);
11479
RescaleConstantsForDpi(_oldDeviceDpi,
_deviceDpi
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
34
int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.
_deviceDpi
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
217
? new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
255
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
4322
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
5142
_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
407
scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(
_deviceDpi
);
412
scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(
_deviceDpi
);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
803
height += SystemInformation.GetBorderSizeForDpi(
_deviceDpi
).Height * 4 + 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
451
if (currentDpi == _parent.
_deviceDpi
)
456
double factor = ((double)currentDpi) / _parent.
_deviceDpi
;
System\Windows\Forms\Form.cs (2)
4522
DpiChangedEventArgs e = new(
_deviceDpi
, m);
4575
|| OnGetDpiScaledSize(
_deviceDpi
, m.WParamInternal.LOWORD, ref desiredSize))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
333
currentAutoScaleDimensions = new SizeF(
_deviceDpi
,
_deviceDpi
);
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
33
return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(
_deviceDpi
), LogicalToDeviceUnits(DefaultHeight));