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)
778item._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)
338InitializeConstantsForInitialDpi(_deviceDpi); 1606=> ScaleHelper.IsThreadPerMonitorV2Aware ? _deviceDpi : ScaleHelper.InitialSystemDpi; 5275if (_oldDeviceDpi != _deviceDpi && OsVersion.IsWindows10_1703OrGreater()) 5430fontDpi = _deviceDpi; 6331AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle, _deviceDpi); 7305int old = _deviceDpi; 7308if (old == _deviceDpi) 7313if (fontDpi != _deviceDpi) 7317Font fontForDpi = GetScaledFont(localFont, _deviceDpi, fontDpi); 7329RescaleConstantsForDpi(old, _deviceDpi); 11425_oldDeviceDpi = _deviceDpi; 11445if (fontDpi == _deviceDpi) 11457ScaledControlFont = GetScaledFont(localFont, _deviceDpi, fontDpi); 11479RescaleConstantsForDpi(_oldDeviceDpi, _deviceDpi);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
34int 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)
407scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(_deviceDpi); 412scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(_deviceDpi);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
803height += SystemInformation.GetBorderSizeForDpi(_deviceDpi).Height * 4 + 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
451if (currentDpi == _parent._deviceDpi) 456double factor = ((double)currentDpi) / _parent._deviceDpi;
System\Windows\Forms\Form.cs (2)
4522DpiChangedEventArgs e = new(_deviceDpi, m); 4575|| OnGetDpiScaledSize(_deviceDpi, m.WParamInternal.LOWORD, ref desiredSize))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
333currentAutoScaleDimensions = new SizeF(_deviceDpi, _deviceDpi);
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
33return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(_deviceDpi), LogicalToDeviceUnits(DefaultHeight));