5 writes to _deviceDpi
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (3)
313_deviceDpi = _oldDeviceDpi = ScaleHelper.InitialSystemDpi; 7348_deviceDpi = (int)PInvoke.GetDpiForWindow(this); 11476_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)
339InitializeConstantsForInitialDpi(_deviceDpi); 1607=> ScaleHelper.IsThreadPerMonitorV2Aware ? _deviceDpi : ScaleHelper.InitialSystemDpi; 5316if (_oldDeviceDpi != _deviceDpi && OsVersion.IsWindows10_1703OrGreater()) 5471fontDpi = _deviceDpi; 6372AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle, _deviceDpi); 7346int old = _deviceDpi; 7349if (old == _deviceDpi) 7354if (fontDpi != _deviceDpi) 7358Font fontForDpi = GetScaledFont(localFont, _deviceDpi, fontDpi); 7370RescaleConstantsForDpi(old, _deviceDpi); 11458_oldDeviceDpi = _deviceDpi; 11478if (fontDpi == _deviceDpi) 11490ScaledControlFont = GetScaledFont(localFont, _deviceDpi, fontDpi); 11512RescaleConstantsForDpi(_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) 5138_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)
452if (currentDpi == _parent._deviceDpi) 457double 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));