1 write to DeviceDpiNew
System.Windows.Forms (1)
System\Windows\Forms\Rendering\DpiChangedEventArgs.cs (1)
20
DeviceDpiNew
= (short)m.WParamInternal.LOWORD;
10 references to DeviceDpiNew
System.Windows.Forms (9)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
339
if (e.
DeviceDpiNew
!= e.DeviceDpiOld)
341
_scaledHeightPadding = (int)Math.Round(HEIGHTPADDING * ((float)e.
DeviceDpiNew
/ e.DeviceDpiOld));
System\Windows\Forms\Form.cs (5)
4457
if (e.
DeviceDpiNew
!= e.DeviceDpiOld)
4478
if (!_dpiFormSizes.ContainsKey(e.
DeviceDpiNew
))
4480
_dpiFormSizes.Add(e.
DeviceDpiNew
, new Size(e.SuggestedRectangle.Width, e.SuggestedRectangle.Height));
4494
ScaleContainerForDpi(e.
DeviceDpiNew
, e.DeviceDpiOld, e.SuggestedRectangle);
4523
_deviceDpi = e.
DeviceDpiNew
;
System\Windows\Forms\Rendering\DpiChangedEventArgs.cs (2)
21
Debug.Assert((short)m.WParamInternal.HIWORD ==
DeviceDpiNew
, "Non-square pixels!");
31
public override string ToString() => $"was: {DeviceDpiOld}, now: {
DeviceDpiNew
}";
WinFormsControlsTest (1)
MenuStripAndCheckedListBox.cs (1)
27
float factor = (float)e.
DeviceDpiNew
/ e.DeviceDpiOld;