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