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