31 instantiations of Cursor
System.Windows.Forms (30)
System\Windows\Forms\Input\Cursor.cs (1)
148return cursor.IsNull ? null : new Cursor(cursor);
System\Windows\Forms\Input\CursorConverter.cs (1)
70return new Cursor(ms);
System\Windows\Forms\Input\Cursors.cs (28)
40public static Cursor AppStarting => s_appStarting ??= new(PInvoke.IDC_APPSTARTING, nameof(AppStarting)); 41public static Cursor Arrow => s_arrow ??= new(PInvoke.IDC_ARROW, nameof(Arrow)); 42public static Cursor Cross => s_cross ??= new(PInvoke.IDC_CROSS, nameof(Cross)); 43public static Cursor Default => s_defaultCursor ??= new(PInvoke.IDC_ARROW, nameof(Default)); 44public static Cursor IBeam => s_iBeam ??= new(PInvoke.IDC_IBEAM, nameof(IBeam)); 45public static Cursor No => s_no ??= new(PInvoke.IDC_NO, nameof(No)); 46public static Cursor SizeAll => s_sizeAll ??= new(PInvoke.IDC_SIZEALL, nameof(SizeAll)); 47public static Cursor SizeNESW => s_sizeNESW ??= new(PInvoke.IDC_SIZENESW, nameof(SizeNESW)); 48public static Cursor SizeNS => s_sizeNS ??= new(PInvoke.IDC_SIZENS, nameof(SizeNS)); 49public static Cursor SizeNWSE => s_sizeNWSE ??= new(PInvoke.IDC_SIZENWSE, nameof(SizeNWSE)); 50public static Cursor SizeWE => s_sizeWE ??= new(PInvoke.IDC_SIZEWE, nameof(SizeWE)); 51public static Cursor UpArrow => s_upArrow ??= new(PInvoke.IDC_UPARROW, nameof(UpArrow)); 52public static Cursor WaitCursor => s_wait ??= new(PInvoke.IDC_WAIT, nameof(WaitCursor)); 53public static Cursor Help => s_help ??= new(PInvoke.IDC_HELP, nameof(Help)); 54public static Cursor Hand => s_hand ??= new(PInvoke.IDC_HAND, nameof(Hand)); 55public static Cursor HSplit => s_hSplit ??= new("hsplit.cur", nameof(HSplit)); 56public static Cursor VSplit => s_vSplit ??= new("vsplit.cur", nameof(VSplit)); 57public static Cursor NoMove2D => s_noMove2D ??= new("nomove2d.cur", nameof(NoMove2D)); 58public static Cursor NoMoveHoriz => s_noMoveHoriz ??= new("nomoveh.cur", nameof(NoMoveHoriz)); 59public static Cursor NoMoveVert => s_noMoveVert ??= new("nomovev.cur", nameof(NoMoveVert)); 60public static Cursor PanEast => s_panEast ??= new("east.cur", nameof(PanEast)); 61public static Cursor PanNE => s_panNE ??= new("ne.cur", nameof(PanNE)); 62public static Cursor PanNorth => s_panNorth ??= new("north.cur", nameof(PanNorth)); 63public static Cursor PanNW => s_panNW ??= new("nw.cur", nameof(PanNW)); 64public static Cursor PanSE => s_panSE ??= new("se.cur", nameof(PanSE)); 65public static Cursor PanSouth => s_panSouth ??= new("south.cur", nameof(PanSouth)); 66public static Cursor PanSW => s_panSW ??= new("sw.cur", nameof(PanSW)); 67public static Cursor PanWest => s_panWest ??= new("west.cur", nameof(PanWest));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
587cursor = new Cursor(PInvoke.GetCursor());
324 references to Cursor
System.Windows.Forms (150)
System\Windows\Forms\ActiveX\AxHost.cs (2)
310public override Cursor Cursor 3534protected static object? GetIPictureFromCursor(Cursor? cursor)
System\Windows\Forms\AmbientProperties.cs (1)
23public Cursor? Cursor { get; set; }
System\Windows\Forms\Control.cs (9)
1547public virtual Cursor Cursor 1556if (Properties.TryGetValue(s_cursorProperty, out Cursor? cursor)) 1562Cursor localDefault = DefaultCursor; 1569Cursor? localCursor = Properties.GetValueOrDefault<Cursor>(s_cursorProperty); 1570Cursor resolvedCursor = Cursor; 1641protected virtual Cursor DefaultCursor => Cursors.Default; 3039Cursor? oldCursor = null; 11984Cursor.Current = Cursor;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1758Cursor.Current = Cursor;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
255private Cursor? _oldCursor; 1862internal Cursor CursorInternal 4079public Cursor? UserSetCursor => _dataGridViewState1[State1_CustomCursorSet]
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
3377Cursor.Clip = RectangleToScreen(cursorClip); 25592Cursor.Clip = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
67public virtual Cursor EditingPanelCursor => Cursors.Default;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
37private static Cursor? s_dataGridViewCursor;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
78public virtual Cursor EditingPanelCursor
System\Windows\Forms\Controls\DataGridView\IDataGridViewEditingControl.cs (1)
33Cursor EditingPanelCursor
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
44private Cursor? _overrideCursor; 284protected Cursor? OverrideCursor 1750Cursor.Current = OverrideCursor ?? Cursor;
System\Windows\Forms\Controls\ListView\ListView.cs (6)
4381Point pos = Cursor.Position; 5889pt = PointToClient(Cursor.Position) 5931pt = PointToClient(Cursor.Position) 6036AnnounceColumnHeader(Cursor.Position); 6391pt = PointToClient(Cursor.Position) 6711Point pos = Cursor.Position;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
25public override Cursor Cursor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
721Cursor? oldCursor = Cursor.Current; 724Cursor.Current = Cursors.WaitCursor; 769Cursor.Current = oldCursor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3445Cursor? oldCursor = Cursor; 5278Point mouseLoc = Cursor.Position;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3485Cursor.Current = Cursors.Hand;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
98protected override Cursor DefaultCursor => Dock switch
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
471protected override Cursor DefaultCursor
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
483public override Cursor Cursor 4503if (_currentlyActiveTooltipItem is not null && !GetToolStripState(STATE_DRAGGING) && Cursor.Current is { } currentCursor) 4505Point cursorLocation = Cursor.Position;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
215public override Cursor Cursor
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
11private Cursor? _oldCursor;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
25private Cursor? _lastCursor;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
959cursorLoc.Y = Cursor.Position.Y; 964cursorLoc.X = Cursor.Position.X; 967Cursor.Position = cursorLoc;
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2056pt = PointToClient(Cursor.Position) 2910pt = PointToClient(Cursor.Position) 2941pt = PointToClient(Cursor.Position) 3015Point pos = PointToClient(Cursor.Position);
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (1)
156public override Cursor Cursor
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1316public override Cursor Cursor
System\Windows\Forms\Form.cs (1)
4399Cursor.Position = pointToSnap;
System\Windows\Forms\Input\Cursor.cs (21)
46: this(typeof(Cursors).Assembly.GetManifestResourceStream(typeof(Cursor), resource).OrThrowIfNull()) 54/// Initializes a new instance of the <see cref="Cursor"/> class from the specified <paramref name="handle"/>. 61throw new ArgumentException(string.Format(SR.InvalidGDIHandle, (typeof(Cursor)).Name), nameof(handle)); 69/// Initializes a new instance of the <see cref="Cursor"/> class with the specified <paramref name="fileName"/>. 81/// Initializes a new instance of the <see cref="Cursor"/> class from the specified <paramref name="resource"/>. 89/// Initializes a new instance of the <see cref="Cursor"/> class from the 116/// rectangle for this <see cref="Cursor"/> in screen coordinates. 140/// Gets or sets a <see cref="Cursor"/> that represents the current mouse cursor. 143public static Cursor? Current 154/// Gets the Win32 handle for this <see cref="Cursor"/>. 191/// Gets the size of this <see cref="Cursor"/> object. 220/// Duplicates this the Win32 handle of this <see cref="Cursor"/>. 348/// Draws this <see cref="Cursor"/> to a <see cref="Graphics"/>. 356/// Draws this <see cref="Cursor"/> to a <see cref="Graphics"/>. 435throw new ArgumentException(string.Format(SR.InvalidPictureType, nameof(picture), nameof(Cursor)), paramName); 466/// Retrieves a human readable string representing this <see cref="Cursor"/>. 470public static bool operator ==(Cursor? left, Cursor? right) 475public static bool operator !=(Cursor? left, Cursor? right) => !(left == right); 479public override bool Equals(object? obj) => obj is Cursor cursor && this == cursor;
System\Windows\Forms\Input\CursorConverter.cs (3)
85if (value is Cursor cursor) 106Cursor? knownCursor = (Cursor?)prop.GetValue(obj: null, index: null);
System\Windows\Forms\Input\Cursors.cs (56)
11private static Cursor? s_appStarting; 12private static Cursor? s_arrow; 13private static Cursor? s_cross; 14private static Cursor? s_defaultCursor; 15private static Cursor? s_iBeam; 16private static Cursor? s_no; 17private static Cursor? s_sizeAll; 18private static Cursor? s_sizeNESW; 19private static Cursor? s_sizeNS; 20private static Cursor? s_sizeNWSE; 21private static Cursor? s_sizeWE; 22private static Cursor? s_upArrow; 23private static Cursor? s_wait; 24private static Cursor? s_help; 25private static Cursor? s_hSplit; 26private static Cursor? s_vSplit; 27private static Cursor? s_noMove2D; 28private static Cursor? s_noMoveHoriz; 29private static Cursor? s_noMoveVert; 30private static Cursor? s_panEast; 31private static Cursor? s_panNE; 32private static Cursor? s_panNorth; 33private static Cursor? s_panNW; 34private static Cursor? s_panSE; 35private static Cursor? s_panSouth; 36private static Cursor? s_panSW; 37private static Cursor? s_panWest; 38private static Cursor? s_hand; 40public static Cursor AppStarting => s_appStarting ??= new(PInvoke.IDC_APPSTARTING, nameof(AppStarting)); 41public static Cursor Arrow => s_arrow ??= new(PInvoke.IDC_ARROW, nameof(Arrow)); 42public static Cursor Cross => s_cross ??= new(PInvoke.IDC_CROSS, nameof(Cross)); 43public static Cursor Default => s_defaultCursor ??= new(PInvoke.IDC_ARROW, nameof(Default)); 44public static Cursor IBeam => s_iBeam ??= new(PInvoke.IDC_IBEAM, nameof(IBeam)); 45public static Cursor No => s_no ??= new(PInvoke.IDC_NO, nameof(No)); 46public static Cursor SizeAll => s_sizeAll ??= new(PInvoke.IDC_SIZEALL, nameof(SizeAll)); 47public static Cursor SizeNESW => s_sizeNESW ??= new(PInvoke.IDC_SIZENESW, nameof(SizeNESW)); 48public static Cursor SizeNS => s_sizeNS ??= new(PInvoke.IDC_SIZENS, nameof(SizeNS)); 49public static Cursor SizeNWSE => s_sizeNWSE ??= new(PInvoke.IDC_SIZENWSE, nameof(SizeNWSE)); 50public static Cursor SizeWE => s_sizeWE ??= new(PInvoke.IDC_SIZEWE, nameof(SizeWE)); 51public static Cursor UpArrow => s_upArrow ??= new(PInvoke.IDC_UPARROW, nameof(UpArrow)); 52public static Cursor WaitCursor => s_wait ??= new(PInvoke.IDC_WAIT, nameof(WaitCursor)); 53public static Cursor Help => s_help ??= new(PInvoke.IDC_HELP, nameof(Help)); 54public static Cursor Hand => s_hand ??= new(PInvoke.IDC_HAND, nameof(Hand)); 55public static Cursor HSplit => s_hSplit ??= new("hsplit.cur", nameof(HSplit)); 56public static Cursor VSplit => s_vSplit ??= new("vsplit.cur", nameof(VSplit)); 57public static Cursor NoMove2D => s_noMove2D ??= new("nomove2d.cur", nameof(NoMove2D)); 58public static Cursor NoMoveHoriz => s_noMoveHoriz ??= new("nomoveh.cur", nameof(NoMoveHoriz)); 59public static Cursor NoMoveVert => s_noMoveVert ??= new("nomovev.cur", nameof(NoMoveVert)); 60public static Cursor PanEast => s_panEast ??= new("east.cur", nameof(PanEast)); 61public static Cursor PanNE => s_panNE ??= new("ne.cur", nameof(PanNE)); 62public static Cursor PanNorth => s_panNorth ??= new("north.cur", nameof(PanNorth)); 63public static Cursor PanNW => s_panNW ??= new("nw.cur", nameof(PanNW)); 64public static Cursor PanSE => s_panSE ??= new("se.cur", nameof(PanSE)); 65public static Cursor PanSouth => s_panSouth ??= new("south.cur", nameof(PanSouth)); 66public static Cursor PanSW => s_panSW ??= new("sw.cur", nameof(PanSW)); 67public static Cursor PanWest => s_panWest ??= new("west.cur", nameof(PanWest));
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
61private Cursor? _overrideCursor; 436private Cursor? OverrideCursor 2272Cursor.Current = OverrideCursor ?? Cursor;
System\Windows\Forms\OLE\DropSource.cs (1)
93if (!lastHwndTarget.IsNull && (Cursor.Position is Point point))
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
435public override Cursor Cursor
System\Windows\Forms\ToolTip\ToolTip.cs (8)
1313_ = Cursor.Current; 1314Point cursorLocation = Cursor.Position; 2002Point cursorLocation = Cursor.Position; 2080Screen screen = Screen.FromPoint(Cursor.Position); 2140Cursor? currentCursor = Cursor.Current; 2141Point cursorPos = Cursor.Position; 2233Screen screen = Screen.FromPoint(Cursor.Position);
System.Windows.Forms.Design (162)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location)) 282if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)))
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (4)
289Cursor? oldCursor = Cursor.Current; 290Cursor.Current = Cursors.WaitCursor; 336Cursor.Current = oldCursor;
System\Drawing\Design\CursorEditor.CursorUI.cs (6)
19private readonly Dictionary<(Cursor cursor, int dpi), int> _cursorWidthCache = new(); 29_cursorConverter = TypeDescriptor.GetConverter(typeof(Cursor)); 66Cursor cursor = (Cursor)Items[e.Index]; 81private int GetCursorWidthForDpi(Cursor cursor, int dpi) 83(Cursor cursor, int dpi) key = (cursor, dpi);
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
43public virtual Cursor Cursor => Cursors.Default;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (3)
494Cursor? hitTestCursor = Adorners[i].Glyphs[j].GetHitTest(pt); 521Cursor cursor = Cursors.Default; 578private void SetAppropriateCursor(Cursor cursor)
System\Windows\Forms\Design\Behavior\ComponentGlyph.cs (1)
42public override Cursor? GetHitTest(Point p) => null;
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
156Cursor.Position = controlOrigin;
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
39public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\ControlBodyGlyph.cs (4)
17private readonly Cursor? _hitTestCursor; // cursor used to hit test 25Cursor? cursor, 35public ControlBodyGlyph(Rectangle bounds, Cursor? cursor, IComponent? relatedComponent, Behavior? behavior) 53public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
87public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
624Cursor.Current = Cursors.Default;
System\Windows\Forms\Design\Behavior\Glyph.cs (1)
47public abstract Cursor? GetHitTest(Point p);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
46private Cursor _cursor = Cursors.Default; // used to set the correct cursor during resizing 78public override Cursor Cursor
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (3)
16protected Cursor? hitTestCursor; // the cursor returned if hit test is positive 37public override Cursor? GetHitTest(Point p) 50public Cursor? HitTestCursor
System\Windows\Forms\Design\Behavior\TableLayoutPanelResizeGlyph.cs (3)
11private readonly Cursor _hitTestCursor; 21Cursor hitTestCursor, 51public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
25internal ToolStripPanelSelectionGlyph(Rectangle bounds, Cursor cursor, IComponent relatedComponent, IServiceProvider? _provider, ToolStripPanelSelectionBehavior behavior) : base(bounds, cursor, relatedComponent, behavior) 202public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (4)
34Cursor current = Cursor.Current; 39Cursor.Current = Cursors.WaitCursor; 113Cursor.Current = current;
System\Windows\Forms\Design\CommandSet.cs (45)
691Cursor.Current = Cursors.Default; 971Cursor? oldCursor = Cursor.Current; 974Cursor.Current = Cursors.WaitCursor; 1102Cursor.Current = oldCursor; 1119Cursor? oldCursor = Cursor.Current; 1122Cursor.Current = Cursors.WaitCursor; 1222Cursor.Current = oldCursor; 1239Cursor? oldCursor = Cursor.Current; 1242Cursor.Current = Cursors.WaitCursor; 1375Cursor.Current = oldCursor; 1389Cursor? oldCursor = Cursor.Current; 1392Cursor.Current = Cursors.WaitCursor; 1420Cursor.Current = oldCursor; 1434Cursor? oldCursor = Cursor.Current; 1437Cursor.Current = Cursors.WaitCursor; 1568Cursor.Current = oldCursor; 1582Cursor? oldCursor = Cursor.Current; 1585Cursor.Current = Cursors.WaitCursor; 1814Cursor.Current = oldCursor; 1825Cursor? oldCursor = Cursor.Current; 1829Cursor.Current = Cursors.WaitCursor; 2177Cursor.Current = oldCursor; 2196Cursor? oldCursor = Cursor.Current; 2199Cursor.Current = Cursors.WaitCursor; 2227Cursor.Current = oldCursor; 2278Cursor? oldCursor = Cursor.Current; 2281Cursor.Current = Cursors.WaitCursor; 2362Cursor.Current = oldCursor; 2376Cursor? oldCursor = Cursor.Current; 2382Cursor.Current = Cursors.WaitCursor; 2439Cursor.Current = oldCursor; 2514Cursor? oldCursor = Cursor.Current; 2519Cursor.Current = Cursors.WaitCursor; 2873Cursor.Current = oldCursor;
System\Windows\Forms\Design\ComponentTray.cs (14)
649Cursor.Clip = Rectangle.Empty; 1177Cursor.Clip = Rectangle.Empty; 1252Cursor.Clip = RectangleToScreen(ClientRectangle); 1319Cursor.Clip = Rectangle.Empty; 1481Cursor.Current = Cursors.Default; 2238Cursor.Clip = Rectangle.Empty; 2361Cursor.Current = Cursors.Default; 2368Cursor.Current = Cursors.Default; 2375Cursor.Current = Cursors.Default; 2381Cursor.Current = Cursors.Default; 2385Cursor.Current = Cursors.Cross; 2389Cursor.Current = Cursors.SizeAll; 2646public Cursor GetHitTest(Point p) 2650Cursor hitTestCursor = _traySelectionAdorner.Glyphs[i].GetHitTest(p);
System\Windows\Forms\Design\ControlCommandSet.cs (8)
842Cursor oldCursor = Cursor.Current; 845Cursor.Current = Cursors.WaitCursor; 902Cursor.Current = oldCursor; 972Cursor oldCursor = Cursor.Current; 975Cursor.Current = Cursors.WaitCursor; 1123Cursor.Current = oldCursor;
System\Windows\Forms\Design\ControlDesigner.cs (7)
694Cursor? cursor = Cursor.Current; 1594Cursor.Current = Cursors.Default; 1619Cursor.Current = Cursors.Default; 1625Cursor.Current = Cursors.Default; 1629Cursor.Current = Cursors.SizeAll; 2218location = Cursor.Position;
System\Windows\Forms\Design\DesignerUtils.cs (4)
739Cursor? oldCursor = Cursor.Current; 742Cursor.Current = Cursors.WaitCursor; 784Cursor.Current = oldCursor;
System\Windows\Forms\Design\OleDragDropHandler.cs (8)
147Cursor? oldCursor = Cursor.Current; 148Cursor.Current = Cursors.WaitCursor; 251Cursor.Current = oldCursor; 658Cursor? oldCursor = Cursor.Current; 662Cursor.Current = Cursors.WaitCursor; 855Cursor.Current = oldCursor;
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
1014return new ControlBodyGlyph(nonClipRect, Cursor.Current, Control, this); 1025return new ControlBodyGlyph(controlRect, Cursor.Current, Control, this); 1778Cursor.Clip = Rectangle.Empty; 2067Cursor.Current = Cursors.Default; 2073Cursor.Current = Cursors.Default;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
192Cursor.Clip = Rectangle.Empty;
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (1)
19public override Cursor? GetCursorAtPoint(Point point)
System\Windows\Forms\Design\SelectionUIService.cs (2)
794Cursor? cursor = item.GetCursorAtPoint(clientCoords); 806Cursor? cursor = item.GetCursorAtPoint(clientCoords);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (6)
44internal static readonly Cursor[] s_activeCursorArrays = 52internal static readonly Cursor[] s_inactiveCursorArray = 60internal Cursor[] _cursors; // array of cursors for each grab location 186public virtual Cursor? GetCursorAtPoint(Point point) 188Cursor? cursor = null; 419_cursors = new Cursor[8];
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 (4)
44Cursor current = Cursor.Current; 47Cursor.Current = Cursors.WaitCursor; 59Cursor.Current = current;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
609                   Point p = Cursor.Position;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1530Cursor.Current = Cursors.No; 1542Cursor.Current = Cursors.No;
System\Windows\Forms\Design\TabOrder.cs (1)
630=> Cursor.Current = _ctlHover is not null ? Cursors.Cross : Cursors.Default;
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\ToolStripDesigner.cs (1)
2131Cursor.Current = Cursors.Default;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
690_dummyToolStripGlyph = new ControlBodyGlyph(r, Cursor.Current, _menuItem, new ContextMenuStripBehavior());
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
61if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 888if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 903ToolStripDesigner.s_lastCursorPosition = Cursor.Position;
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
29public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
488Point p = Cursor.Position;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2560public override Cursor GetHitTest(Point p)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
477ToolStripDesigner.s_lastCursorPosition = Cursor.Position;
WindowsFormsIntegration (12)
System\Windows\Integration\Convert.cs (9)
25private static Dictionary<SWF.Cursor, SWI.Cursor> _toSystemWindowsInputCursorDictionary; 26private static Dictionary<SWF.Cursor, SWI.Cursor> ToSystemWindowsInputCursorDictionary 32_toSystemWindowsInputCursorDictionary = new Dictionary<SWF.Cursor, System.Windows.Input.Cursor>(); 65private static Dictionary<SWI.Cursor, SWF.Cursor> _toSystemWindowsFormsCursorDictionary; 66private static Dictionary<SWI.Cursor, SWF.Cursor> ToSystemWindowsFormsCursorDictionary 72_toSystemWindowsFormsCursorDictionary = new Dictionary<SWI.Cursor, SWF.Cursor>(); 108internal static SWI.Cursor ToSystemWindowsInputCursor(SWF.Cursor swfCursor) 122internal static SWF.Cursor ToSystemWindowsFormsCursor(SWI.Cursor swiCursor) 124SWF.Cursor swfCursor;
System\Windows\Integration\ElementHostPropertyMap.cs (2)
97SWF.Cursor fromCursor = value as SWF.Cursor;
System\Windows\Integration\WindowsFormsHost.cs (1)
764public override Cursor Cursor