Skip to content

Cursor property cannot be set to "Arrow" in designer  #11995

Open

Description

@accellbtjsteens

Environment

Visual Studio version 17.10.6

.NET version

8.0

Did this work in a previous version of Visual Studio and/or previous .NET release?

Yes, unknown

Issue description

When the Cursor is set to "Arrow", it revers back to "Default" in the designer.
This is incorrect, as for some components (such as a textbox), the default cursor isn't an arrow.

Steps to reproduce

  1. Drop a textbox unto a blank form.
  2. Set the Cursor in Properties to Arrow

Diagnostics

No response

Activity

  1. added
    untriaged
    on Aug 27, 2024
  2. merriemcgaw commented on Aug 27, 2024

    @merriemcgaw
    Contributor

    @accellbtjsteens can you please help us understand the scenario here? Does this occur when you're targeting .NET 9? Has this regressed from a previous version of either .NET or of Visual Studio? Is this something that you see exclusively in the design time experience or can you reproduce this in a runtime scenario?

  3. added
    waiting-author-feedback
    on Aug 27, 2024
  4. Zheng-Li01 commented on Aug 28, 2024

    @Zheng-Li01
    Member

    @merriemcgaw @accellbtjsteens, for .NET from 6.0 ~ 9.0 that the default cursor value is default for now, which actually have the same icon as arrow as below screenshot. and get the below returned results.
    image

    Core:
    The default value is Default
    Default -> IBeam=> returned IBeam
    Default -> Arrow => returned Default
    IBeam-> Default => returned Default
    IBeam-> Arrow=> returned Default
    CoreResults

    Framework:
    The default value is "IBeam"
    IBeam-> Default => returned Default
    IBeam-> Arrow=> returned Arrow
    Default -> IBeam=> returned IBeam
    Default -> Arrow => returned Arrow
    Arrow -> Default => returned Default
    FrameworkResults

  5. accellbtjsteens commented on Aug 28, 2024

    @accellbtjsteens
    Author

    @merriemcgaw This is a design time issue related to the designer.
    When selecting "Arrow" from the drop down list in the Properties pane, the selection is not taken over. Instead, it reverts to "Default" (and the default for a TextBox is not Arrow). If you run it, there will be an Ibeam when hovering over the textbox instead of an arrow.
    When setting the cursor to Arrow in the code behind, everything works as intended.

    In the post above by Zheng-Li01 you can see this behavior in the first video.

    I have verified that the same issue occurs with VS 2022 17.11.2. .NET 5 till 8 all show the same behavior.
    When using a .NET Framework project, the issue does not occur.

  6. removed
    waiting-author-feedback
    on Aug 28, 2024
  7. added
    area-VSDesigner
    on Aug 30, 2024
  8. merriemcgaw commented on Aug 30, 2024

    @merriemcgaw
    Contributor

    @Zheng-Li01 can you copy this issue over to the internal designer repo? We'll update this once we have a fix.

  9. Zheng-Li01 commented on Sep 2, 2024

    @Zheng-Li01
    Member
  10. added this to the VS release milestone on Sep 4, 2024
  11. added and removed
    untriaged
    on Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-VSDesignertracking

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions