281 references to SystemInformation
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\Devices\Mouse.vb (5)
29
If
SystemInformation
.MousePresent Then
30
Return
SystemInformation
.MouseButtonsSwapped
44
If
SystemInformation
.MousePresent Then
45
Return
SystemInformation
.MouseWheelPresent
60
Return
SystemInformation
.MouseWheelScrollLines
System.Windows.Forms (229)
System\Windows\Forms\Application.cs (2)
508
=> !
SystemInformation
.HighContrast && OsVersion.IsWindows11_OrGreater();
515
!
SystemInformation
.HighContrast
System\Windows\Forms\Application.ThreadContext.cs (2)
603
if (
SystemInformation
.UserInteractive)
687
if (reason == msoloop.ModalForm && !
SystemInformation
.UserInteractive)
System\Windows\Forms\Control.cs (2)
3536
if (
SystemInformation
.MenuAccessKeysUnderlined)
3582
if (
SystemInformation
.MenuAccessKeysUnderlined)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
24
HighContrast =
SystemInformation
.HighContrast;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (7)
121
protected bool IsHighContrastHighlighted() =>
SystemInformation
.HighContrast
157
if (Control.BackColor != SystemColors.Control &&
SystemInformation
.HighContrast)
184
bool disabledHighContrast = (!Control.Enabled) &&
SystemInformation
.HighContrast;
216
?
SystemInformation
.HighContrast ? SystemColors.ControlLight : SystemColors.Control
217
:
SystemInformation
.HighContrast ? colors.Highlight : colors.ButtonFace);
287
bool disabledHighContrast = (!Control.Enabled) &&
SystemInformation
.HighContrast;
325
:
SystemInformation
.HighContrast ? SystemColors.ControlLight : SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (9)
28
|| (
SystemInformation
.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked),
29
check: !hasCustomBorder &&
SystemInformation
.HighContrast && state == CheckState.Checked,
99
else if (state == CheckState.Checked &&
SystemInformation
.HighContrast)
121
|| (
SystemInformation
.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked),
122
!hasCustomBorder &&
SystemInformation
.HighContrast && state == CheckState.Checked,
187
else if (state == CheckState.Checked &&
SystemInformation
.HighContrast)
204
if (
SystemInformation
.HighContrast)
308
layout.ShadowedText =
SystemInformation
.HighContrast;
320
layout.ShadowedText =
SystemInformation
.HighContrast;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (5)
62
LayoutData layout = PaintPopupLayout(state == CheckState.Unchecked,
SystemInformation
.HighContrast ? 2 : 1).Layout();
86
if (
SystemInformation
.HighContrast)
120
LayoutData layout = PaintPopupLayout(up: false,
SystemInformation
.HighContrast ? 2 : 1).Layout();
168
layout.ShadowedText =
SystemInformation
.HighContrast;
184
layout.ShadowedText =
SystemInformation
.HighContrast;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
100
Color comboColor =
SystemInformation
.HighContrast ? SystemColors.ControlDark : SystemColors.Control;
168
checkColor =
SystemInformation
.HighContrast ? colors.Highlight : colors.ButtonShadow;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
19
_animateBackgroundColors = _modern && !
SystemInformation
.HighContrast;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
66
if (!
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
344
if (
SystemInformation
.HighContrast
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (1)
322
if (
SystemInformation
.HighContrast
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
853
_prefHeightCache = (short)(textSize.Height +
SystemInformation
.BorderSize.Height * 8 + Padding.Size.Height);
870
_prefHeightCache = (short)(textSize.Height * itemCount +
SystemInformation
.BorderSize.Height * 16 + Padding.Size.Height);
902
int dyEdit = textExtent.Height +
SystemInformation
.Border3DSize.Height;
913
Size fixedFrameBoderSize =
SystemInformation
.FixedFrameBorderSize;
3930
|| !(
SystemInformation
.HighContrast
4023
int buttonWidth =
SystemInformation
.GetHorizontalScrollBarArrowWidthForDpi(
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
32
int dropDownButtonWidth =
SystemInformation
.GetHorizontalScrollBarArrowWidthForDpi(comboBox.DeviceDpiInternal);
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (1)
33
+ (2 *
SystemInformation
.FixedFrameBorderSize.Height);
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
38
int buttonWidth =
SystemInformation
.GetHorizontalScrollBarArrowWidthForDpi(
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
229
private static readonly Size s_dragSize =
SystemInformation
.DragSize;
1111
return Application.RenderWithVisualStyles ? 1 :
SystemInformation
.Border3DSize.Width;
1997
defaultCellStyleTmp.ForeColor =
SystemInformation
.HighContrast ? DefaultForeBrush.Color : base.ForeColor;
2061
ForeColor =
SystemInformation
.HighContrast ? DefaultForeBrush.Color : base.ForeColor,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (11)
940
&&
SystemInformation
.VerticalScrollBarWidth <= _layout.Data.Width)
943
availableWidth -=
SystemInformation
.VerticalScrollBarWidth;
4539
int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 *
SystemInformation
.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8);
4550
(_vertScrollBar.Height - 2 *
SystemInformation
.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum,
5776
&& (DateTime.Now.Ticks - _lastMouseClickInfo.TimeStamp) / 10000 <=
SystemInformation
.DoubleClickTime
5782
Size hotDoubleClickZone =
SystemInformation
.DoubleClickSize;
10165
int horizScrollBarHeight = _horizScrollBar.Height =
SystemInformation
.HorizontalScrollBarHeight;
10166
int vertScrollBarWidth = _vertScrollBar.Width =
SystemInformation
.VerticalScrollBarWidth;
16473
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
16707
if (
SystemInformation
.HighContrast)
30039
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
754
valBounds.Inflate(-
SystemInformation
.Border3DSize.Width, -
SystemInformation
.Border3DSize.Height);
881
valBounds.Width > 2 *
SystemInformation
.Border3DSize.Width + 1 &&
882
valBounds.Height > 2 *
SystemInformation
.Border3DSize.Height + 1)
904
SystemInformation
.HighContrast,
935
SystemInformation
.HighContrast ? 2 : 1,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1428
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
701
_ =>
SystemInformation
.Border3DSize.Width * 2 + 9 + 2 * DATAGRIDVIEWCHECKBOXCELL_margin,
1202
checkBoxSize = new Size(
SystemInformation
.Border3DSize.Width * 2 + 9,
SystemInformation
.Border3DSize.Width * 2 + 9);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (8)
546
int dropWidth = Math.Min(
SystemInformation
.HorizontalScrollBarThumbWidth, adjustedSize.Width - 2 * Margin - 1);
614
s_cachedDropDownWidth = maxPreferredWidth + 2 +
SystemInformation
.VerticalScrollBarWidth;
1194
preferredSize.Width +=
SystemInformation
.HorizontalScrollBarThumbWidth + 1 + (2 * Margin) + borderAndPaddingWidths;
1200
borderAndPaddingWidths +
SystemInformation
.HorizontalScrollBarThumbWidth + 1 + (IconMarginWidth * 2) + s_iconsWidth);
1989
int dropWidth = Math.Min(
SystemInformation
.HorizontalScrollBarThumbWidth, valBounds.Width - 2 * Margin - 1);
2065
if (
SystemInformation
.HighContrast)
2087
Pen pen =
SystemInformation
.HighContrast ? SystemPens.ControlLight : SystemPens.Control;
2323
if (paintPostXPThemes && (drawDropDownButton || drawComboBox) && !
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (6)
51
else if (
SystemInformation
.HighContrast)
94
if (
SystemInformation
.HighContrast)
159
else if (
SystemInformation
.HighContrast)
200
private bool ShouldSerializeLinkColor() =>
SystemInformation
.HighContrast
296
else if (
SystemInformation
.HighContrast)
341
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (3)
68
if (
SystemInformation
.HighContrast)
179
if (
SystemInformation
.HighContrast)
359
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
2041
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height +
SystemInformation
.HorizontalScrollBarHeight);
2053
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height + DataGridView.VerticalScrollingOffset +
SystemInformation
.HorizontalScrollBarHeight) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1039
if (
SystemInformation
.HighContrast &&
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
748
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
573
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
361
if (
SystemInformation
.HighContrast
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
243
:
SystemInformation
.HighContrast
358
:
SystemInformation
.HighContrast
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
748
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
767
width +=
SystemInformation
.VerticalScrollBarWidth + 4;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6885
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, (WPARAM)0, (LPARAM)
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
23
_slowShow = Math.Max(_quickShow,
SystemInformation
.MenuShowDelay);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1651
Size max =
SystemInformation
.MaxWindowTrackSize;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
73
private Color _lineColor =
SystemInformation
.HighContrast ? SystemColors.ControlDarkDark : SystemColors.InactiveBorder;
3837
if (DrawFlatToolbar ||
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
122
if (
SystemInformation
.HighContrast && !OwnerGrid.HasCustomLineColor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
18
if (Control.BackColor != SystemColors.Control &&
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
107
=>
SystemInformation
.HighContrast && !OwnerGrid.HasCustomLineColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
142
(LPARAM)
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (14)
230
? new(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(DeviceDpiInternal), RowHeight)
231
: new(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
277
? new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(DeviceDpiInternal), RowHeight)
278
: new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
2625
if (delta <
SystemInformation
.DoubleClickTime)
2629
if (Math.Abs(screenPoint.X - _rowSelectPos.X) <
SystemInformation
.DoubleClickSize.Width &&
2630
Math.Abs(screenPoint.Y - _rowSelectPos.Y) <
SystemInformation
.DoubleClickSize.Height)
3161
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
3753
maxWidth += 2 + tm.tmMaxCharWidth +
SystemInformation
.VerticalScrollBarWidth;
3829
int overhang = toolTip.Location.X + toolTip.Size.Width -
SystemInformation
.VirtualScreen.Width;
4357
? new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(DeviceDpiInternal), RowHeight)
4358
: new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
5170
_dropDownButton.Size = new(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(DeviceDpiInternal), RowHeight);
5174
_dropDownButton.Size = new(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
31
private static readonly int s_resizeGripSize =
SystemInformation
.HorizontalScrollBarHeight;
41
new(
SystemInformation
.VerticalScrollBarWidth * 4,
SystemInformation
.HorizontalScrollBarHeight * 4);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
76
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
342
padding.Bottom =
SystemInformation
.GetHorizontalScrollBarHeightForDpi(DeviceDpiInternal);
347
padding.Right =
SystemInformation
.GetVerticalScrollBarWidthForDpi(DeviceDpiInternal);
468
scrollBarPadding.Height +=
SystemInformation
.HorizontalScrollBarHeight;
473
scrollBarPadding.Width +=
SystemInformation
.VerticalScrollBarWidth;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
2125
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\TextBox\TextBox.cs (4)
408
scrollBarPadding.Height +=
SystemInformation
.GetHorizontalScrollBarHeightForDpi(DeviceDpiInternal);
413
scrollBarPadding.Width +=
SystemInformation
.GetVerticalScrollBarWidthForDpi(DeviceDpiInternal);
438
padding.Bottom =
SystemInformation
.GetHorizontalScrollBarHeightForDpi(DeviceDpiInternal);
443
padding.Right =
SystemInformation
.GetVerticalScrollBarWidthForDpi(DeviceDpiInternal);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (7)
914
height +=
SystemInformation
.GetBorderSizeForDpi(DeviceDpiInternal).Height
1026
padding.Bottom +=
SystemInformation
.GetHorizontalScrollBarHeightForDpi(DeviceDpiInternal);
1031
padding.Right +=
SystemInformation
.GetVerticalScrollBarWidthForDpi(DeviceDpiInternal);
1805
animate:
SystemInformation
.UIEffectsEnabled && !
SystemInformation
.HighContrast);
1824
animate:
SystemInformation
.UIEffectsEnabled && !
SystemInformation
.HighContrast);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
131
brush =
SystemInformation
.HighContrast
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
201
if (Selected && !Pressed &&
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
733
int menuHeight =
SystemInformation
.MenuHeight;
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
137
s_dragSize =
SystemInformation
.DragSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2122
get =>
SystemInformation
.DoubleClickTime * 10000;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
69
sysFont =
SystemInformation
.GetMenuFontForDpi(dpi);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
813
if (
SystemInformation
.InLockedTerminalSession())
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
873
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
23
private static readonly int s_autoScrollPause =
SystemInformation
.DoubleClickTime;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
639
if (e.Item is ToolStripSplitButton item && !
SystemInformation
.HighContrast &&
717
if (!
SystemInformation
.HighContrast &&
839
if (!
SystemInformation
.InLockedTerminalSession())
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
245
Color innerBorderColor =
SystemInformation
.HighContrast && !focused ? ColorTable.MenuBorder : BackColor;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
929
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1757
PInvokeCore.SendMessage(toolTip, PInvoke.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
3423
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (4)
368
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
826
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
1195
animate:
SystemInformation
.UIEffectsEnabled && !
SystemInformation
.HighContrast);
System\Windows\Forms\Design\ComponentEditorForm.cs (2)
251
int xFrame =
SystemInformation
.FixedFrameBorderSize.Width;
255
2 * xFrame +
SystemInformation
.CaptionHeight);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
170
if (!
SystemInformation
.UserInteractive)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
19
&&
SystemInformation
.BootMode == BootMode.Normal;
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
248
get => AutoUpgradeEnabled &&
SystemInformation
.BootMode == BootMode.Normal;
System\Windows\Forms\Dialogs\MessageBox.cs (1)
53
if (!
SystemInformation
.UserInteractive && (options & (MessageBoxOptions.ServiceNotification | MessageBoxOptions.DefaultDesktopOnly)) == 0)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
125
(LPARAM)
SystemInformation
.MaxWindowTrackSize.Width);
System\Windows\Forms\Form.cs (16)
898
Rectangle screen =
SystemInformation
.WorkingArea;
921
Rectangle screen =
SystemInformation
.WorkingArea;
3100
correctClientSize.Height +=
SystemInformation
.HorizontalScrollBarHeight;
3105
correctClientSize.Width +=
SystemInformation
.VerticalScrollBarWidth;
3125
correct.Width +=
SystemInformation
.VerticalScrollBarWidth;
3130
correct.Height +=
SystemInformation
.HorizontalScrollBarHeight;
5314
Size max =
SystemInformation
.MaxWindowTrackSize;
5334
Size min =
SystemInformation
.MinWindowTrackSize;
5384
x +=
SystemInformation
.VerticalScrollBarWidth;
5392
y +=
SystemInformation
.HorizontalScrollBarHeight;
5410
Rectangle workingArea =
SystemInformation
.WorkingArea;
5419
Rectangle workingArea =
SystemInformation
.WorkingArea;
5479
if (!
SystemInformation
.UserInteractive)
5705
if (!
SystemInformation
.UserInteractive)
6917
Size virtualScreen =
SystemInformation
.VirtualScreen.Size;
6933
Size minTrackWindowSize =
SystemInformation
.MinWindowTrackSize;
System\Windows\Forms\Input\Cursor.cs (1)
199
s_cursorSize =
SystemInformation
.CursorSize;
System\Windows\Forms\Input\MouseHoverTimer.cs (1)
13
_mouseHoverTimer.Interval =
SystemInformation
.MouseHoverTime;
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
82
using Icon smallIcon = new(icon,
SystemInformation
.SmallIconSize);
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.cs (1)
40
if (
SystemInformation
.UserInteractive)
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
37
private readonly int _focusHOffset =
SystemInformation
.HorizontalFocusThickness;
38
private readonly int _focusVOffset =
SystemInformation
.VerticalFocusThickness;
350
bool isHighContrast =
SystemInformation
.HighContrast;
602
if (
SystemInformation
.HighContrast && Parent is Control parent)
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (1)
118
bool highContrast =
SystemInformation
.HighContrast;
System\Windows\Forms\Rendering\Button\PopupButtonRenderContext.cs (1)
150
public bool HighContrast { get; init; } =
SystemInformation
.HighContrast;
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
93
bool highContrast =
SystemInformation
.HighContrast;
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
199
bool highContrast =
SystemInformation
.HighContrast;
System\Windows\Forms\Rendering\ControlPaint.cs (6)
168
=>
SystemInformation
.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark;
1069
Size sz =
SystemInformation
.Border3DSize;
1153
:
SystemInformation
.HighContrast
1359
? (
SystemInformation
.HighContrast ? SystemColors.GrayText : SystemColors.ControlDark)
2014
if (
SystemInformation
.HighContrast)
2062
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Rendering\DisplayInformation.cs (3)
75
s_highContrast =
SystemInformation
.HighContrast;
90
s_dropShadowEnabled =
SystemInformation
.IsDropShadowEnabled;
106
s_menuAccessKeysUnderlined =
SystemInformation
.MenuAccessKeysUnderlined;
System\Windows\Forms\Rendering\ModernControlColorMath.cs (1)
32
if (
SystemInformation
.HighContrast)
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (1)
89
bool highContrast =
SystemInformation
.HighContrast;
System\Windows\Forms\Rendering\TextRenderer.cs (3)
550
if (
SystemInformation
.HighContrast)
589
if (!
SystemInformation
.IsFontSmoothingEnabled)
595
return
SystemInformation
.FontSmoothingType == 0x0002
System\Windows\Forms\Screen.cs (9)
58
if (!
SystemInformation
.MultiMonitorSupport || monitor == s_primaryMonitor)
61
_bounds =
SystemInformation
.VirtualScreen;
106
if (
SystemInformation
.MultiMonitorSupport)
158
if (
SystemInformation
.MultiMonitorSupport)
191
if (!
SystemInformation
.MultiMonitorSupport || _hmonitor == s_primaryMonitor)
194
_workingArea =
SystemInformation
.WorkingArea;
250
=>
SystemInformation
.MultiMonitorSupport
258
=>
SystemInformation
.MultiMonitorSupport
276
=>
SystemInformation
.MultiMonitorSupport
System\Windows\Forms\Scrolling\HScrollBar.cs (1)
24
=> new(80,
SystemInformation
.HorizontalScrollBarHeight);
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
308
fullClient.Height +=
SystemInformation
.HorizontalScrollBarHeight;
312
minClient.Height -=
SystemInformation
.HorizontalScrollBarHeight;
317
fullClient.Width +=
SystemInformation
.VerticalScrollBarWidth;
321
minClient.Width -=
SystemInformation
.VerticalScrollBarWidth;
495
clientToBe.Height -=
SystemInformation
.HorizontalScrollBarHeight;
500
clientToBe.Width -=
SystemInformation
.VerticalScrollBarWidth;
1241
SetScrollState(ScrollStateFullDrag,
SystemInformation
.DragFullWindows);
System\Windows\Forms\Scrolling\VScrollBar.cs (2)
34
SystemInformation
.GetVerticalScrollBarWidthForDpi(DeviceDpiInternal),
38
return new Size(
SystemInformation
.VerticalScrollBarWidth, DefaultHeight);
System\Windows\Forms\ToolTip\ToolTip.cs (3)
717
if (
SystemInformation
.HighContrast)
736
PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
1585
Rectangle screenBounds =
SystemInformation
.VirtualScreen;
System.Windows.Forms.Design (47)
System\ComponentModel\Design\ByteViewer.cs (2)
438
_scrollbarHeight =
SystemInformation
.HorizontalScrollBarHeight;
439
_scrollbarWidth =
SystemInformation
.VerticalScrollBarWidth;
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (6)
204
_listBox.ItemHeight = Font.Height +
SystemInformation
.BorderSize.Width * 2;
232
w +=
SystemInformation
.BorderSize.Width * 4;
241
return (int)Math.Ceiling(size.Width) + w + pic +
SystemInformation
.BorderSize.Width * 4;
584
w +=
SystemInformation
.BorderSize.Width * 4;
589
button.Inflate(-
SystemInformation
.BorderSize.Width * 2, -
SystemInformation
.BorderSize.Height * 2);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
103
maxWidth += 2 + tm.tmMaxCharWidth +
SystemInformation
.VerticalScrollBarWidth;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (2)
36
int width = Math.Max(_hostedControl.Width,
SystemInformation
.MinimumWindowSize.Width);
37
int height = Math.Max(_hostedControl.Height,
SystemInformation
.MinimizedWindowSize.Height);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
158
requestedSize.Width +=
SystemInformation
.VerticalScrollBarWidth;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
72
int XBORDER = ScaleHelper.ScaleToInitialSystemDpi(
SystemInformation
.Border3DSize.Width);
73
int YBORDER = ScaleHelper.ScaleToInitialSystemDpi(
SystemInformation
.Border3DSize.Height);
System\Windows\Forms\Design\ComponentTray.cs (6)
1426
if (
SystemInformation
.HighContrast)
1443
if (
SystemInformation
.HighContrast)
1909
_borderWidth =
SystemInformation
.BorderSize.Width;
2171
Size minDrag =
SystemInformation
.DragSize;
2172
Size minDblClick =
SystemInformation
.DoubleClickSize;
2434
_cyIcon =
SystemInformation
.IconSize.Height;
System\Windows\Forms\Design\ControlDesigner.cs (7)
1393
Size minDrag =
SystemInformation
.DragSize;
1394
Size minDblClick =
SystemInformation
.DoubleClickSize;
2255
Size glyphSize =
SystemInformation
.IconSize;
2275
Math.Max(
SystemInformation
.ToolWindowCaptionHeight -
SystemInformation
.BorderSize.Height - 2, Control.Font.Height),
2348
int wait =
SystemInformation
.DoubleClickTime;
2352
Size dblClick =
SystemInformation
.DoubleClickSize;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
141
if (!
SystemInformation
.HighContrast)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
116
Width = Math.Max(Width, PreferredWidth + (
SystemInformation
.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
575
Width = Math.Max(Width, _treeViewCtrl is null ? 0 : _treeViewCtrl.PreferredWidth + (
SystemInformation
.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\DesignerUtils.cs (2)
144
Size minDrag =
SystemInformation
.DragSize;
145
Size minDblClick =
SystemInformation
.DoubleClickSize;
System\Windows\Forms\Design\FormDocumentDesigner.cs (4)
116
size.Height +=
SystemInformation
.HorizontalScrollBarHeight;
121
size.Width +=
SystemInformation
.VerticalScrollBarWidth;
431
clientHeight +=
SystemInformation
.HorizontalScrollBarHeight;
436
clientWidth +=
SystemInformation
.VerticalScrollBarWidth;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
83
_validatingTypeHeader.Width = (_listViewCannedMasks.Width / 3) -
SystemInformation
.VerticalScrollBarWidth - 4; // so no h-scrollbar.
System\Windows\Forms\Design\SelectionUIService.cs (1)
623
Size minDragSize =
SystemInformation
.DragSize;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
979
? new(4 +
SystemInformation
.HorizontalScrollBarThumbWidth, 3, s_iconWidth, s_iconHeight)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
586
s_highContrast =
SystemInformation
.HighContrast;
601
s_dropShadowEnabled =
SystemInformation
.IsDropShadowEnabled;
619
s_isTerminalServerSession =
SystemInformation
.TerminalServerSession;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
371
Interval =
SystemInformation
.DoubleClickTime
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
1237
bool menusCascadeRight =
SystemInformation
.RightAlignedMenus;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1767
DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds,
SystemInformation
.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.Down));
1996
if (item is not null && string.Equals(item.Name, CenterLabelName, StringComparison.InvariantCulture) &&
SystemInformation
.HighContrast)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
282
if (!
SystemInformation
.HighContrast)