69 writes to Current
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
11843Cursor.Current = Cursor;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1752Cursor.Current = Cursor;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1752Cursor.Current = OverrideCursor ?? Cursor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
724Cursor.Current = Cursors.WaitCursor; 769Cursor.Current = oldCursor;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3457Cursor.Current = Cursors.Hand;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2272Cursor.Current = OverrideCursor ?? Cursor;
System.Windows.Forms.Design (57)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (2)
290Cursor.Current = Cursors.WaitCursor; 336Cursor.Current = oldCursor;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
630Cursor.Current = Cursors.Default;
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
39Cursor.Current = Cursors.WaitCursor; 116Cursor.Current = current;
System\Windows\Forms\Design\CommandSet.cs (23)
697Cursor.Current = Cursors.Default; 980Cursor.Current = Cursors.WaitCursor; 1108Cursor.Current = oldCursor; 1128Cursor.Current = Cursors.WaitCursor; 1228Cursor.Current = oldCursor; 1248Cursor.Current = Cursors.WaitCursor; 1381Cursor.Current = oldCursor; 1398Cursor.Current = Cursors.WaitCursor; 1426Cursor.Current = oldCursor; 1443Cursor.Current = Cursors.WaitCursor; 1574Cursor.Current = oldCursor; 1591Cursor.Current = Cursors.WaitCursor; 1820Cursor.Current = oldCursor; 1835Cursor.Current = Cursors.WaitCursor; 2182Cursor.Current = oldCursor; 2204Cursor.Current = Cursors.WaitCursor; 2232Cursor.Current = oldCursor; 2286Cursor.Current = Cursors.WaitCursor; 2367Cursor.Current = oldCursor; 2387Cursor.Current = Cursors.WaitCursor; 2444Cursor.Current = oldCursor; 2524Cursor.Current = Cursors.WaitCursor; 2878Cursor.Current = oldCursor;
System\Windows\Forms\Design\ComponentTray.cs (7)
1496Cursor.Current = Cursors.Default; 2379Cursor.Current = Cursors.Default; 2386Cursor.Current = Cursors.Default; 2393Cursor.Current = Cursors.Default; 2399Cursor.Current = Cursors.Default; 2403Cursor.Current = Cursors.Cross; 2407Cursor.Current = Cursors.SizeAll;
System\Windows\Forms\Design\ControlCommandSet.cs (4)
848Cursor.Current = Cursors.WaitCursor; 905Cursor.Current = oldCursor; 981Cursor.Current = Cursors.WaitCursor; 1129Cursor.Current = oldCursor;
System\Windows\Forms\Design\ControlDesigner.cs (4)
1579Cursor.Current = Cursors.Default; 1604Cursor.Current = Cursors.Default; 1610Cursor.Current = Cursors.Default; 1614Cursor.Current = Cursors.SizeAll;
System\Windows\Forms\Design\DesignerUtils.cs (2)
742Cursor.Current = Cursors.WaitCursor; 784Cursor.Current = oldCursor;
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
148Cursor.Current = Cursors.WaitCursor; 251Cursor.Current = oldCursor; 662Cursor.Current = Cursors.WaitCursor; 855Cursor.Current = oldCursor;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
2072Cursor.Current = Cursors.Default; 2078Cursor.Current = Cursors.Default;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
48Cursor.Current = Cursors.WaitCursor; 60Cursor.Current = current;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1545Cursor.Current = Cursors.No; 1557Cursor.Current = Cursors.No;
System\Windows\Forms\Design\TabOrder.cs (1)
639=> Cursor.Current = _ctlHover is not null ? Cursors.Cross : Cursors.Default;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2116Cursor.Current = Cursors.Default;
System.Windows.Forms.Tests (3)
System\Windows\Forms\CursorTests.cs (3)
247Cursor.Current = value; 251Cursor.Current = null; 256Cursor.Current = current;
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
748Cursor.Current = _myNormalCursor; 750Cursor.Current = _myNoDropCursor;
37 references to Current
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
721Cursor? oldCursor = Cursor.Current;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4505if (_currentlyActiveTooltipItem is not null && !GetToolStripState(STATE_DRAGGING) && Cursor.Current is { } currentCursor)
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1313_ = Cursor.Current; 2141Cursor? currentCursor = Cursor.Current;
System.Windows.Forms.Design (27)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
289Cursor? oldCursor = Cursor.Current;
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
34Cursor current = Cursor.Current;
System\Windows\Forms\Design\CommandSet.cs (11)
977Cursor? oldCursor = Cursor.Current; 1125Cursor? oldCursor = Cursor.Current; 1245Cursor? oldCursor = Cursor.Current; 1395Cursor? oldCursor = Cursor.Current; 1440Cursor? oldCursor = Cursor.Current; 1588Cursor? oldCursor = Cursor.Current; 1831Cursor? oldCursor = Cursor.Current; 2201Cursor? oldCursor = Cursor.Current; 2283Cursor? oldCursor = Cursor.Current; 2381Cursor? oldCursor = Cursor.Current; 2519Cursor? oldCursor = Cursor.Current;
System\Windows\Forms\Design\ControlCommandSet.cs (2)
845Cursor oldCursor = Cursor.Current; 978Cursor oldCursor = Cursor.Current;
System\Windows\Forms\Design\ControlDesigner.cs (1)
679Cursor? cursor = Cursor.Current;
System\Windows\Forms\Design\DesignerUtils.cs (1)
739Cursor? oldCursor = Cursor.Current;
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
147Cursor? oldCursor = Cursor.Current; 658Cursor? oldCursor = Cursor.Current;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1014return new ControlBodyGlyph(nonClipRect, Cursor.Current, Control, this); 1025return new ControlBodyGlyph(controlRect, Cursor.Current, Control, this);
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
207ControlBodyGlyph bodyGlyph = new(translatedBounds, Cursor.Current, _splitterPanel1, panelDesigner); 217ControlBodyGlyph bodyGlyph = new(translatedBounds, Cursor.Current, _splitterPanel2, panelDesigner);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
45Cursor current = Cursor.Current;
System\Windows\Forms\Design\TabPageDesigner.cs (1)
49ControlBodyGlyph g = new(translatedBounds, Cursor.Current, Control, this);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
241ControlBodyGlyph bodyGlyph = new(translatedBounds, Cursor.Current, currentPanel, panelDesigner);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
699_dummyToolStripGlyph = new ControlBodyGlyph(r, Cursor.Current, _menuItem, new ContextMenuStripBehavior());
System.Windows.Forms.Tests (5)
System\Windows\Forms\CursorTests.cs (5)
229Cursor cursor = Cursor.Current; 236Assert.NotSame(cursor, Cursor.Current); 242Cursor current = Cursor.Current; 248Assert.Equal(value.Handle, Cursor.Current.Handle); 252Assert.Null(Cursor.Current);
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
73if (Cursor.Current is { } cursor)