7 overrides of Cursor
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.cs (1)
310
public override Cursor
Cursor
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
25
public override Cursor
Cursor
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
484
public override Cursor
Cursor
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
215
public override Cursor
Cursor
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1322
public override Cursor
Cursor
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
435
public override Cursor
Cursor
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
793
public override Cursor
Cursor
66 writes to Cursor
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
313
set => base.
Cursor
= value;
System\Windows\Forms\Control.cs (1)
9074
Cursor
= null;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1863
Cursor
= value;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
774
DataGridView.
Cursor
= s_dataGridViewCursor;
806
DataGridView.
Cursor
= Cursors.Hand;
814
DataGridView.
Cursor
= s_dataGridViewCursor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
28
set => base.
Cursor
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
40
Cursor
= Cursors.Default
46
Cursor
= Cursors.Default
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
3005
Cursor
= Cursors.Default;
3092
Cursor
= Cursors.VSplit;
3096
Cursor
= Cursors.Default;
3413
Cursor
= Cursors.WaitCursor;
3422
Cursor
= oldCursor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
419
Cursor
= cursorMoveType switch
486
Cursor
= null;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
487
set => base.
Cursor
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
218
set => base.
Cursor
= value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
438
set => base.
Cursor
= value;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
594
_adornerWindow.
Cursor
= cursor;
System\Windows\Forms\Design\SelectionUIService.cs (4)
701
Cursor
= Cursors.Default;
803
Cursor
= cursor == Cursors.Default ? null : cursor;
815
Cursor
= cursor == Cursors.Default ? null : cursor;
822
Cursor
= null;
System.Windows.Forms.Tests (41)
System\Windows\Forms\AxHostTests.cs (2)
492
Cursor
= cursor1
496
Cursor
= cursor2
System\Windows\Forms\ControlTests.Handlers.cs (3)
1156
Cursor
= childCursor1
1160
Cursor
= childCursor2
4386
Cursor
= cursor
System\Windows\Forms\ControlTests.Methods.cs (1)
6434
control.
Cursor
= cursor;
System\Windows\Forms\ControlTests.Properties.cs (35)
3721
control.
Cursor
= cursor;
3732
Cursor
= cursor1
3741
control.
Cursor
= cursor2;
3761
control.
Cursor
= cursor2;
3773
control.
Cursor
= cursor;
3784
Cursor
= cursor1
3793
control.
Cursor
= cursor2;
3810
Cursor
= value
3816
control.
Cursor
= value;
3834
control.
Cursor
= value;
3842
control.
Cursor
= value;
3860
control.
Cursor
= value;
3866
control.
Cursor
= value;
3880
Cursor
= cursor1
3884
Cursor
= cursor2
3890
control.
Cursor
= value;
3896
control.
Cursor
= value;
3917
control.
Cursor
= cursor1;
3922
control.
Cursor
= cursor1;
3928
control.
Cursor
= cursor2;
3933
control.
Cursor
= null;
3939
control.
Cursor
= cursor1;
3980
control.
Cursor
= cursor1;
3989
control.
Cursor
= cursor1;
3999
control.
Cursor
= cursor2;
4008
control.
Cursor
= null;
4020
control.
Cursor
= cursor1;
4036
Cursor
= childCursor1
4040
Cursor
= childCursor2
4073
control.
Cursor
= cursor1;
4082
control.
Cursor
= cursor1;
4092
control.
Cursor
= cursor2;
4101
control.
Cursor
= null;
4113
control.
Cursor
= cursor1;
10958
Cursor
= controlCursor,
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
811
base.
Cursor
= value;
157 references to Cursor
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.cs (1)
312
get => base.
Cursor
;
System\Windows\Forms\Control.cs (5)
1478
: ParentInternal is { } parent ? parent.
Cursor
: AmbientPropertiesService?.Cursor ?? localDefault;
1483
Cursor resolvedCursor =
Cursor
;
2971
oldCursor =
Cursor
;
2992
if (checkCursor && oldCursor!.Equals(
Cursor
))
11875
Cursor.Current =
Cursor
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1750
if (
Cursor
!= DefaultCursor && _childEdit is not null
1753
Cursor.Current =
Cursor
;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
4080
:
Cursor
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5996
_oldCursor =
Cursor
;
14604
_oldCursor =
Cursor
;
16234
_oldCursor =
Cursor
;
16257
_oldCursor =
Cursor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
804
if (DataGridView.
Cursor
!= Cursors.Hand)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1752
Cursor.Current = OverrideCursor ??
Cursor
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3407
Cursor? oldCursor =
Cursor
;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3466
if (LinkCursor && !
Cursor
.Equals(Cursors.WaitCursor))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
486
get => base.
Cursor
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
217
get => base.
Cursor
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1324
get => base.
Cursor
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1068
if (
Cursor
== DefaultCursor && SplitterRectangle.Contains(e.Location))
2272
Cursor.Current = OverrideCursor ??
Cursor
;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
437
get => base.
Cursor
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
56
Assert.Equal(Cursors.Default, control.
Cursor
);
System.Windows.Forms.Tests (129)
System\Windows\Forms\AxHostTests.cs (8)
474
Assert.Same(value ?? Cursors.Default, child1.
Cursor
);
475
Assert.Same(value ?? Cursors.Default, child2.
Cursor
);
480
Assert.Same(value ?? Cursors.Default, child1.
Cursor
);
481
Assert.Same(value ?? Cursors.Default, child2.
Cursor
);
504
Assert.Same(cursor1, child1.
Cursor
);
505
Assert.Same(cursor2, child2.
Cursor
);
510
Assert.Same(cursor1, child1.
Cursor
);
511
Assert.Same(cursor2, child2.
Cursor
);
System\Windows\Forms\ButtonBaseTests.cs (1)
49
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ButtonTests.cs (1)
51
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\CheckBoxTests.cs (1)
53
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ComboBoxTests.cs (1)
54
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ContainerControlTests.cs (1)
57
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ControlTests.cs (5)
44
Assert.Same(Cursors.Default, control.
Cursor
);
133
Assert.Same(Cursors.Default, control.
Cursor
);
229
Assert.Same(Cursors.Default, control.
Cursor
);
325
Assert.Same(Cursors.Default, control.
Cursor
);
421
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ControlTests.Methods.cs (3)
6431
Assert.Equal(control.DefaultCursor, control.
Cursor
);
6436
Assert.Equal(control.DefaultCursor, control.
Cursor
);
6440
Assert.Equal(control.DefaultCursor, control.
Cursor
);
System\Windows\Forms\ControlTests.Properties.cs (70)
3718
Assert.Same(Cursors.WaitCursor, control.
Cursor
);
3722
Assert.Same(Cursors.WaitCursor, control.
Cursor
);
3738
Assert.Same(cursor1, control.
Cursor
);
3742
Assert.Same(cursor2, control.
Cursor
);
3758
Assert.Same(cursor1, control.
Cursor
);
3762
Assert.Same(cursor2, control.
Cursor
);
3770
Assert.Same(control.DefaultCursorResult, control.
Cursor
);
3774
Assert.Same(cursor, control.
Cursor
);
3790
Assert.Same(control.DefaultCursorResult, control.
Cursor
);
3794
Assert.Same(cursor2, control.
Cursor
);
3812
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3817
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3835
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3843
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3861
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3862
Assert.Same(value ?? Cursors.Default, child1.
Cursor
);
3863
Assert.Same(value ?? Cursors.Default, child2.
Cursor
);
3867
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3868
Assert.Same(value ?? Cursors.Default, child1.
Cursor
);
3869
Assert.Same(value ?? Cursors.Default, child2.
Cursor
);
3891
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3892
Assert.Same(cursor1, child1.
Cursor
);
3893
Assert.Same(cursor2, child2.
Cursor
);
3897
Assert.Same(value ?? Cursors.Default, control.
Cursor
);
3898
Assert.Same(cursor1, child1.
Cursor
);
3899
Assert.Same(cursor2, child2.
Cursor
);
3918
Assert.Same(cursor1, control.
Cursor
);
3923
Assert.Same(cursor1, control.
Cursor
);
3929
Assert.Same(cursor2, control.
Cursor
);
3934
Assert.Same(Cursors.Default, control.
Cursor
);
3940
Assert.Same(cursor1, control.
Cursor
);
3981
Assert.Same(cursor1, control.
Cursor
);
3982
Assert.Same(cursor1, child1.
Cursor
);
3983
Assert.Same(cursor1, child2.
Cursor
);
3990
Assert.Same(cursor1, control.
Cursor
);
3991
Assert.Same(cursor1, child1.
Cursor
);
3992
Assert.Same(cursor1, child2.
Cursor
);
4000
Assert.Same(cursor2, control.
Cursor
);
4001
Assert.Same(cursor2, child1.
Cursor
);
4002
Assert.Same(cursor2, child2.
Cursor
);
4009
Assert.Same(Cursors.Default, control.
Cursor
);
4010
Assert.Same(Cursors.Default, child1.
Cursor
);
4011
Assert.Same(Cursors.Default, child2.
Cursor
);
4021
Assert.Same(cursor1, control.
Cursor
);
4022
Assert.Same(cursor1, child1.
Cursor
);
4023
Assert.Same(cursor1, child2.
Cursor
);
4074
Assert.Same(cursor1, control.
Cursor
);
4075
Assert.Same(childCursor1, child1.
Cursor
);
4076
Assert.Same(childCursor2, child2.
Cursor
);
4083
Assert.Same(cursor1, control.
Cursor
);
4084
Assert.Same(childCursor1, child1.
Cursor
);
4085
Assert.Same(childCursor2, child2.
Cursor
);
4093
Assert.Same(cursor2, control.
Cursor
);
4094
Assert.Same(childCursor1, child1.
Cursor
);
4095
Assert.Same(childCursor2, child2.
Cursor
);
4102
Assert.Same(Cursors.Default, control.
Cursor
);
4103
Assert.Same(childCursor1, child1.
Cursor
);
4104
Assert.Same(childCursor2, child2.
Cursor
);
4114
Assert.Same(cursor1, control.
Cursor
);
4115
Assert.Same(childCursor1, child1.
Cursor
);
4116
Assert.Same(childCursor2, child2.
Cursor
);
10812
Assert.Same(cursor1, control.
Cursor
);
10828
Assert.Same(cursor1, control.
Cursor
);
10844
Assert.Same(cursor1, control.
Cursor
);
10860
Assert.Same(cursor2, control.
Cursor
);
10876
Assert.Same(Cursors.Default, control.
Cursor
);
10994
Assert.Same(controlCursor, control.
Cursor
);
11010
Assert.Same(controlCursor, control.
Cursor
);
11026
Assert.Same(controlCursor, control.
Cursor
);
11042
Assert.Same(controlCursor, control.
Cursor
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
55
Assert.Same(Cursors.IBeam, control.
Cursor
);
System\Windows\Forms\DateTimePickerTests.cs (1)
58
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
67
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
53
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\DomainUpDownTests.cs (1)
77
_sub.
Cursor
.Should().Be(Cursors.Default);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
50
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\FormTests.cs (1)
66
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\GroupBoxTests.cs (1)
47
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\HScrollBarTests.cs (1)
51
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\LabelTests.cs (1)
47
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ListBoxTests.cs (1)
49
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ListControlTests.cs (1)
48
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ListViewTests.cs (1)
62
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\MdiClientTests.cs (1)
45
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\MonthCalendarTests.cs (1)
60
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\PanelTests.cs (1)
51
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\PictureBoxTests.cs (1)
50
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ProgressBarTests.cs (1)
46
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\PropertyGridTests.cs (1)
77
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\RadioButtonTests.cs (1)
52
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\RichTextBoxTests.cs (1)
61
Assert.Same(Cursors.IBeam, control.
Cursor
);
System\Windows\Forms\ScrollableControlTests.cs (1)
50
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ScrollBarTests.cs (1)
45
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\SplitterPanelTests.cs (1)
55
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\SplitterTests.cs (2)
46
Assert.Same(Cursors.VSplit, control.
Cursor
);
388
Assert.Equal(expected, control.
Cursor
);
System\Windows\Forms\TabControlTests.cs (1)
48
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
56
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\TabPageTests.cs (2)
56
Assert.Same(Cursors.Default, control.
Cursor
);
165
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
53
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
53
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\TreeViewTests.cs (1)
48
Assert.Same(Cursors.Default, control.
Cursor
);
System\Windows\Forms\UpDownBaseTests.cs (1)
64
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\UserControlTests.cs (1)
57
Assert.Equal(Cursors.Default, control.
Cursor
);
System\Windows\Forms\VScrollBarTests.cs (1)
50
Assert.Same(Cursors.Default, control.
Cursor
);
TextBoxTests.cs (1)
54
Assert.Same(Cursors.IBeam, control.
Cursor
);
TrackBarTests.cs (1)
47
Assert.Same(Cursors.Default, control.
Cursor
);
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (1)
936
OnPropertyChanged("Cursor", this.
Cursor
);
System\Windows\Integration\WindowsFormsHost.cs (3)
797
if (_host == null) { return base.
Cursor
; }
800
{ return base.
Cursor
; }
805
if (cursorSource == null) { return base.
Cursor
; }