242 references to SystemInformation
System.Windows.Forms (214)
winforms\Managed\System\WinForms\Application.cs (2)
3243
if (
SystemInformation
.UserInteractive) {
3360
if (reason == NativeMethods.MSOCM.msoloopModalForm && !
SystemInformation
.UserInteractive) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (8)
86
return
SystemInformation
.HighContrast && Application.RenderWithVisualStyles &&
153
if (Control.BackColor != SystemColors.Control &&
SystemInformation
.HighContrast) {
174
bool disabledHighContrast = (!Control.Enabled) &&
SystemInformation
.HighContrast && AccessibilityImprovements.Level1;
213
if (
SystemInformation
.HighContrast) {
221
if (
SystemInformation
.HighContrast) {
338
bool disabledHighContrast = (!Control.Enabled) &&
SystemInformation
.HighContrast && AccessibilityImprovements.Level1;
397
if (
SystemInformation
.HighContrast) {
735
highContrast =
SystemInformation
.HighContrast;
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (9)
36
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (
SystemInformation
.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked),
37
!hasCustomBorder &&
SystemInformation
.HighContrast && state == CheckState.Checked,
101
else if (state == CheckState.Checked &&
SystemInformation
.HighContrast) {
118
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (
SystemInformation
.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked),
119
!hasCustomBorder &&
SystemInformation
.HighContrast && state == CheckState.Checked,
175
else if (state == CheckState.Checked &&
SystemInformation
.HighContrast) {
188
if (
SystemInformation
.HighContrast) {
295
layout.shadowedText =
SystemInformation
.HighContrast;
308
layout.shadowedText =
SystemInformation
.HighContrast;
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (5)
65
LayoutData layout = PaintPopupLayout(e, state == CheckState.Unchecked,
SystemInformation
.HighContrast ? 2 : 1).Layout();
95
if (
SystemInformation
.HighContrast) {
126
LayoutData layout = PaintPopupLayout(e, false,
SystemInformation
.HighContrast ? 2 : 1).Layout();
167
layout.shadowedText =
SystemInformation
.HighContrast;
184
layout.shadowedText =
SystemInformation
.HighContrast;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
93
Color comboColor =
SystemInformation
.HighContrast ? SystemColors.ControlDark :
140
checkColor =
SystemInformation
.HighContrast ? colors.highlight :
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
67
if (!
SystemInformation
.HighContrast || !AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
345
&&
SystemInformation
.HighContrast
winforms\Managed\System\WinForms\ComboBox.cs (5)
937
prefHeightCache = (short)(textSize.Height +
SystemInformation
.BorderSize.Height * 8 + Padding.Size.Height);
952
prefHeightCache = (short)(textSize.Height * itemCount +
SystemInformation
.BorderSize.Height * 16 + Padding.Size.Height);
983
int dyEdit = textExtent.Height +
SystemInformation
.Border3DSize.Height;
993
Size fixedFrameBoderSize =
SystemInformation
.FixedFrameBorderSize;
5933
int dropDownButtonWidth =
SystemInformation
.GetHorizontalScrollBarArrowWidthForDpi(comboBox.deviceDpi);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
269
if (!
SystemInformation
.UserInteractive) {
winforms\Managed\System\WinForms\Control.cs (4)
4207
if (
SystemInformation
.MenuAccessKeysUnderlined) {
4250
if (
SystemInformation
.MenuAccessKeysUnderlined) {
4542
if (
SystemInformation
.DbcsEnabled) {
7162
mouseWheelRoutingNeeded = !
SystemInformation
.NativeMouseWheelSupport;
winforms\Managed\System\WinForms\ControlPaint.cs (6)
142
return
SystemInformation
.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark;
964
Size sz =
SystemInformation
.Border3DSize;
1046
if (
SystemInformation
.HighContrast) {
1242
((
SystemInformation
.HighContrast && AccessibilityImprovements.Level1) ? SystemColors.GrayText : SystemColors.ControlDark) :
1935
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1) {
1963
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\DataGrid.cs (3)
587
return
SystemInformation
.Border3DSize.Width;
4254
int dragHeight =
SystemInformation
.DragSize.Height;
4380
int move = (int)((float)
SystemInformation
.MouseWheelScrollLines * movePerc);
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
49
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\DataGridView.cs (2)
256
private static Size DragSize =
SystemInformation
.DragSize;
1457
return Application.RenderWithVisualStyles ? 1 :
SystemInformation
.Border3DSize.Width;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (6)
796
valBounds.Inflate(-
SystemInformation
.Border3DSize.Width, -
SystemInformation
.Border3DSize.Height);
938
valBounds.Width > 2 *
SystemInformation
.Border3DSize.Width + 1 &&
939
valBounds.Height > 2 *
SystemInformation
.Border3DSize.Height + 1)
959
SystemInformation
.HighContrast,
989
SystemInformation
.HighContrast ? 2 : 1,
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1686
if (
SystemInformation
.HighContrast)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
815
checkBoxSize =
SystemInformation
.Border3DSize.Width * 2 + 9 + 2 * DATAGRIDVIEWCHECKBOXCELL_margin;
1294
checkBoxSize = new Size(
SystemInformation
.Border3DSize.Width * 2 + 9,
SystemInformation
.Border3DSize.Width * 2 + 9);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (8)
764
int dropWidth = Math.Min(
SystemInformation
.HorizontalScrollBarThumbWidth, adjustedSize.Width - 2 * DATAGRIDVIEWCOMBOBOXCELL_margin - 1);
837
cachedDropDownWidth = maxPreferredWidth + 2 +
SystemInformation
.VerticalScrollBarWidth;
1466
preferredSize.Width +=
SystemInformation
.HorizontalScrollBarThumbWidth + 1 + 2 * DATAGRIDVIEWCOMBOBOXCELL_margin + borderAndPaddingWidths;
1470
preferredSize.Width = Math.Max(preferredSize.Width, borderAndPaddingWidths +
SystemInformation
.HorizontalScrollBarThumbWidth + 1 + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
2226
int dropWidth = Math.Min(
SystemInformation
.HorizontalScrollBarThumbWidth, valBounds.Width - 2 * DATAGRIDVIEWCOMBOBOXCELL_margin - 1);
2299
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1)
2326
bool highContrast =
SystemInformation
.HighContrast;
2354
if (
SystemInformation
.HighContrast) {
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (6)
67
else if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
110
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
200
else if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
243
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
404
else if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
447
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (3)
70
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
180
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
353
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level2)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (11)
948
SystemInformation
.VerticalScrollBarWidth <= this.layout.Data.Width)
951
availableWidth -=
SystemInformation
.VerticalScrollBarWidth;
4508
int oldThumbHeight = Math.Max(((this.vertScrollBar.Height - 2*
SystemInformation
.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.Maximum, 8);
4518
oldThumbHeight != Math.Max(((this.vertScrollBar.Height - 2*
SystemInformation
.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.Maximum, 8)))
5835
(DateTime.Now.Ticks - this.lastMouseClickInfo.timeStamp) / 10000 <=
SystemInformation
.DoubleClickTime &&
5841
Size hotDoubleClickZone =
SystemInformation
.DoubleClickSize;
10345
int horizScrollBarHeight = this.horizScrollBar.Height =
SystemInformation
.HorizontalScrollBarHeight;
10346
int vertScrollBarWidth = this.vertScrollBar.Width =
SystemInformation
.VerticalScrollBarWidth;
16918
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
17154
if (
SystemInformation
.HighContrast)
29938
UnsafeNativeMethods.SendMessage(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (2)
2166
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height +
SystemInformation
.HorizontalScrollBarHeight);
2177
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + this.DataGridView.VerticalScrollingOffset +
SystemInformation
.HorizontalScrollBarHeight) &&
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
881
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (2)
282
int xFrame =
SystemInformation
.FixedFrameBorderSize.Width;
286
2 * xFrame +
SystemInformation
.CaptionHeight);
winforms\Managed\System\WinForms\DisplayInformation.cs (4)
73
highContrast =
SystemInformation
.HighContrast;
83
dropShadowEnabled =
SystemInformation
.IsDropShadowEnabled;
98
isTerminalServerSession =
SystemInformation
.TerminalServerSession;
110
menuAccessKeysUnderlined =
SystemInformation
.MenuAccessKeysUnderlined;
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
969
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\FileDialog_Vista.cs (1)
46
return
SystemInformation
.BootMode == BootMode.Normal; // see DDB#169589
winforms\Managed\System\WinForms\Form.cs (24)
1166
Rectangle screen =
SystemInformation
.WorkingArea;
1190
Rectangle screen =
SystemInformation
.WorkingArea;
3424
correctClientSize.Height +=
SystemInformation
.HorizontalScrollBarHeight;
3427
correctClientSize.Width +=
SystemInformation
.VerticalScrollBarWidth;
3449
correct.Width +=
SystemInformation
.VerticalScrollBarWidth;
3452
correct.Height +=
SystemInformation
.HorizontalScrollBarHeight;
5900
Size max =
SystemInformation
.MaxWindowTrackSize;
5918
Size min =
SystemInformation
.MinWindowTrackSize;
6035
if (VScroll) x +=
SystemInformation
.VerticalScrollBarWidth;
6038
if (HScroll) y +=
SystemInformation
.HorizontalScrollBarHeight;
6053
Rectangle workingArea =
SystemInformation
.WorkingArea;
6062
Rectangle workingArea =
SystemInformation
.WorkingArea;
6088
else if (!
SystemInformation
.UserInteractive) {
6153
else if (!
SystemInformation
.UserInteractive) {
6812
smallIcon = new Icon(icon,
SystemInformation
.SmallIconSize);
7200
Size virtualScreen =
SystemInformation
.VirtualScreen.Size;
7211
Size minTrackWindowSize =
SystemInformation
.MinWindowTrackSize;
7225
mmi.ptMinTrackSize.y = Math.Max(mmi.ptMinTrackSize.y,
SystemInformation
.CaptionButtonSize.Height * 3);
7853
Size s =
SystemInformation
.CaptionButtonSize;
7854
Rectangle r = new Rectangle(owner.Left, owner.Top, s.Width,
SystemInformation
.CaptionHeight);
7912
Size s =
SystemInformation
.CaptionButtonSize;
7918
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top +
SystemInformation
.CaptionHeight));
7937
Size s =
SystemInformation
.CaptionButtonSize;
7938
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top +
SystemInformation
.CaptionHeight));
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (1)
339
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
626
if (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (1)
323
&&
SystemInformation
.HighContrast
winforms\Managed\System\WinForms\HScrollBar.cs (1)
57
return new Size(80,
SystemInformation
.HorizontalScrollBarHeight);
winforms\Managed\System\WinForms\LinkLabel.cs (2)
312
if (
SystemInformation
.HighContrast) {
471
if (
SystemInformation
.HighContrast) {
winforms\Managed\System\WinForms\ListBox.cs (2)
760
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
779
width +=
SystemInformation
.VerticalScrollBarWidth + 4;
winforms\Managed\System\WinForms\ListView.cs (1)
6150
UnsafeNativeMethods.SendMessage(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
135
Icon smallIcon = new Icon(icon,
SystemInformation
.SmallIconSize);
winforms\Managed\System\WinForms\MenuItem.cs (1)
1498
OnDrawItem(new DrawItemEventArgs(g,
SystemInformation
.MenuFont, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), Index, (DrawItemState)dis.itemState));
winforms\Managed\System\WinForms\MessageBox.cs (1)
434
if (!
SystemInformation
.UserInteractive && (options & (MessageBoxOptions.ServiceNotification | MessageBoxOptions.DefaultDesktopOnly)) == 0) {
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1953
Size max =
SystemInformation
.MaxWindowTrackSize;
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
75
if (
SystemInformation
.UserInteractive) {
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
92
private Color lineColor =
SystemInformation
.HighContrast ? (AccessibilityImprovements.Level1 ? SystemColors.ControlDarkDark : SystemColors.ControlDark )
4344
if (DrawFlatToolbar || (
SystemInformation
.HighContrast && AccessibilityImprovements.Level1)) {
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
217
if (
SystemInformation
.HighContrast && !OwnerGrid.developerOverride && AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
157
if (Control.BackColor != SystemColors.Control &&
SystemInformation
.HighContrast) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
179
return
SystemInformation
.HighContrast && !OwnerGrid.developerOverride && AccessibilityImprovements.Level1;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
189
int overHang = (Location.X + Size.Width) -
SystemInformation
.VirtualScreen.Width;
216
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (18)
291
btnDropDown.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
315
btnDialog.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
2809
if (delta <
SystemInformation
.DoubleClickTime) {
2813
if (Math.Abs(screenPoint.X - rowSelectPos.X) <
SystemInformation
.DoubleClickSize.Width &&
2814
Math.Abs(screenPoint.Y - rowSelectPos.Y) <
SystemInformation
.DoubleClickSize.Height) {
3321
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
3893
maxWidth += 2 + tm.tmMaxCharWidth +
SystemInformation
.VerticalScrollBarWidth;
4426
Size sizeBtn = DpiHelper.EnableDpiChangedHighDpiImprovements? new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight):
4427
new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
5187
btnDropDown.Size = new Size(
SystemInformation
.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight);
5190
btnDropDown.Size = new Size(
SystemInformation
.VerticalScrollBarArrowHeight, RowHeight);
5476
MinDropDownSize = new Size(
SystemInformation
.VerticalScrollBarWidth * 4,
SystemInformation
.HorizontalScrollBarHeight * 4);
5477
ResizeGripSize =
SystemInformation
.HorizontalScrollBarHeight;
6124
var scrollbarHeight =
SystemInformation
.GetHorizontalScrollBarHeightForDpi(newDpi);
6125
MinDropDownSize = new Size(
SystemInformation
.GetVerticalScrollBarWidthForDpi(newDpi) * 4, scrollbarHeight * 4);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
284
&&
SystemInformation
.HighContrast
winforms\Managed\System\WinForms\RichTextBox.cs (2)
563
scrollBarPadding.Height +=
SystemInformation
.HorizontalScrollBarHeight;
566
scrollBarPadding.Width +=
SystemInformation
.VerticalScrollBarWidth;
winforms\Managed\System\WinForms\Screen.cs (2)
81
bounds =
SystemInformation
.VirtualScreen;
240
workingArea =
SystemInformation
.WorkingArea;
winforms\Managed\System\WinForms\ScrollableControl.cs (7)
430
fullClient.Height +=
SystemInformation
.HorizontalScrollBarHeight;
433
minClient.Height -=
SystemInformation
.HorizontalScrollBarHeight;
437
fullClient.Width +=
SystemInformation
.VerticalScrollBarWidth;
440
minClient.Width -=
SystemInformation
.VerticalScrollBarWidth;
592
clientToBe.Height -=
SystemInformation
.HorizontalScrollBarHeight;
595
clientToBe.Width -=
SystemInformation
.VerticalScrollBarWidth;
1295
SetScrollState(ScrollStateFullDrag,
SystemInformation
.DragFullWindows);
winforms\Managed\System\WinForms\StatusBar.cs (2)
1002
int border =
SystemInformation
.Border3DSize.Width;
1823
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\StatusBarPanel.cs (4)
204
if (value != null && (((Icon)value).Height >
SystemInformation
.SmallIconSize.Height || ((Icon)value).Width >
SystemInformation
.SmallIconSize.Width)) {
205
this.icon = new Icon(value,
SystemInformation
.SmallIconSize);
562
int width = sz.Width +
SystemInformation
.BorderSize.Width*2 + PANELTEXTINSET*2 + PANELGAP;
winforms\Managed\System\WinForms\SystemInformation.cs (2)
1170
SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(
SystemInformation
.OnUserPreferenceChanged);
1967
if (
SystemInformation
.TerminalServerSession) {
winforms\Managed\System\WinForms\TabControl.cs (1)
2205
UnsafeNativeMethods.SendMessage(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\TextBox.cs (2)
443
scrollBarPadding.Height +=
SystemInformation
.GetHorizontalScrollBarHeightForDpi(deviceDpi);
446
scrollBarPadding.Width +=
SystemInformation
.GetVerticalScrollBarWidthForDpi(deviceDpi);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
947
height +=
SystemInformation
.GetBorderSizeForDpi(deviceDpi).Height * 4 + 3;
winforms\Managed\System\WinForms\ToolBar.cs (6)
737
height +=
SystemInformation
.BorderSize.Height;
740
height +=
SystemInformation
.Border3DSize.Height;
788
width +=
SystemInformation
.BorderSize.Height * 4 + 3;
1736
if (leftTop.y <
SystemInformation
.WorkingArea.Y) {
1742
if (leftTop.y + tooltipHeight >
SystemInformation
.WorkingArea.Height) {
1748
if (leftTop.x + tooltipWidth >
SystemInformation
.WorkingArea.Right) {
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
472
Size edge =
SystemInformation
.Border3DSize;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
5290
int interval =
SystemInformation
.MouseHoverTime;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
726
if (AccessibilityImprovements.Level2 &&
SystemInformation
.HighContrast && (comboBox.ContainsFocus || comboBox.MouseIsOver) && ToolStripManager.VisualStylesEnabled) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1525
bool rightAligned =
SystemInformation
.RightAlignedMenus;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
183
if (Selected && !Pressed && AccessibilityImprovements.Level2 &&
SystemInformation
.HighContrast) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
725
int menuHeight =
SystemInformation
.MenuHeight;
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
160
DragSize =
SystemInformation
.DragSize;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2556
get { return
SystemInformation
.DoubleClickTime * 10000; }
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
74
sysFont =
SystemInformation
.GetMenuFontForDpi(dpi);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1299
slowShow = Math.Max(quickShow,
SystemInformation
.MenuShowDelay);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
710
if(
SystemInformation
.InLockedTerminalSession() ) { // see ddb#191714
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
34
private static readonly int AUTOSCROLL_PAUSE =
SystemInformation
.DoubleClickTime;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
691
if (!
SystemInformation
.InLockedTerminalSession()) { // see ddb#191714
winforms\Managed\System\WinForms\ToolTip.cs (2)
906
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
1825
Rectangle screenBounds =
SystemInformation
.VirtualScreen;
winforms\Managed\System\WinForms\TrackBar.cs (1)
984
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
winforms\Managed\System\WinForms\TreeView.cs (2)
1764
UnsafeNativeMethods.SendMessage(new HandleRef(toolTip, toolTip.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
3210
UnsafeNativeMethods.SendMessage(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0,
SystemInformation
.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
536
height +=
SystemInformation
.BorderSize.Height * 4 + 3;
1000
int wheelScrollLines =
SystemInformation
.MouseWheelScrollLines;
winforms\Managed\System\WinForms\VScrollBar.cs (2)
60
return new Size(
SystemInformation
.GetVerticalScrollBarWidthForDpi(this.deviceDpi), LogicalToDeviceUnits(VERTICAL_SCROLLBAR_HEIGHT));
63
return new Size(
SystemInformation
.VerticalScrollBarWidth, VERTICAL_SCROLLBAR_HEIGHT);
System.Workflow.ComponentModel (28)
AuthoringOM\Design\DesignerWidgets.cs (5)
1461
Width =
SystemInformation
.VerticalScrollBarWidth + 2;
1464
this.tabStrip = new TabStrip(Orientation.Vertical,
SystemInformation
.VerticalScrollBarWidth);
1483
Height =
SystemInformation
.HorizontalScrollBarHeight + 2;
1486
this.tabStrip = new TabStrip(Orientation.Horizontal,
SystemInformation
.HorizontalScrollBarHeight);
1880
if (
SystemInformation
.HighContrast)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
346
Font font =
SystemInformation
.MenuFont;
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (2)
125
(Math.Abs(this.initialDragPoint.Value.X - logicalPoint.X) >
SystemInformation
.DragSize.Width ||
126
Math.Abs(this.initialDragPoint.Value.Y - logicalPoint.Y) >
SystemInformation
.DragSize.Height))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (6)
117
else if (parentView.RootDesigner != null && this.dragStarted && (eventArgs.Button & MouseButtons.Left) > 0 && (Math.Abs(this.dragInitiationPoint.X - logicalPoint.X) >
SystemInformation
.DragSize.Width || Math.Abs(this.dragInitiationPoint.Y - logicalPoint.Y) >
SystemInformation
.DragSize.Height))
272
this.dragImagePointInClientCoOrd = new Point(clientPoint.X +
SystemInformation
.CursorSize.Width / 4, clientPoint.Y +
SystemInformation
.CursorSize.Height / 4);
332
this.dragImagePointInClientCoOrd = new Point(clientPoint.X +
SystemInformation
.CursorSize.Width / 4, clientPoint.Y +
SystemInformation
.CursorSize.Height / 4);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
66
(Math.Abs(this.startDrag.X - logicalPoint.X) > (int)(dragMultiply * (float)
SystemInformation
.DragSize.Width) || Math.Abs(this.startDrag.Y - logicalPoint.Y) > (int)(dragMultiply * (float)
SystemInformation
.DragSize.Height)))
AuthoringOM\Design\Themes.cs (1)
3112
return
SystemInformation
.MenuFont.SizeInPoints;
AuthoringOM\Design\WorkflowPrinting.cs (1)
251
headerFooter = headerFooter.Replace("{User}",
SystemInformation
.UserName);
AuthoringOM\Design\WorkflowView.cs (10)
1082
e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(Width -
SystemInformation
.VerticalScrollBarWidth, Height -
SystemInformation
.HorizontalScrollBarHeight,
SystemInformation
.VerticalScrollBarWidth,
SystemInformation
.HorizontalScrollBarHeight));
1273
hScrollBar.Bounds = new Rectangle(0, Math.Max(0, Height -
SystemInformation
.HorizontalScrollBarHeight), Math.Max(Width - ((vScrollBar.Visible) ?
SystemInformation
.VerticalScrollBarWidth : 0), 0),
SystemInformation
.HorizontalScrollBarHeight);
1276
vScrollBar.Bounds = new Rectangle(Math.Max(0, Width -
SystemInformation
.VerticalScrollBarWidth), 0,
SystemInformation
.VerticalScrollBarWidth, Math.Max(Height - ((hScrollBar.Visible) ?
SystemInformation
.HorizontalScrollBarHeight : 0), 0));