Skip to content

[Dark Mode] the text of the disabled items still is visible after focus on it by using mouse when setting the RenderMode as System #14089

Closed

Description

@Zheng-Li01

.NET version

latest .NET 10.0 build

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Not reproduce 10.0 Preview4 that all disabled items cannot be focused by using mouse.

Issue description

The text of the disabled items still is visible after focus on it by using mouse when setting the RenderMode as System
Expected Results:

ExpectedResults.mp4

Actual Results:

ActualResults.mp4

Steps to reproduce

  1. Create a .NET winforms project with a MenuStrip control
  2. Setting the RenderMode property as System for menuStrip1
  3. Add some subitems for the menustrip1, and set the Enable as False for the subitem
  4. Set app under Dark mode in program.cs file:
    Application.SetColorMode(SystemColorMode.Dark);
  5. Run the application

More info:

  1. The issue cannot reproduce when setting the RenderMode as ManagerRenderMode/Professional

Activity

  1. added
    untriaged
    💥 regression-release
    area-DarkMode
    on Nov 27, 2025
  2. KlausLoeffelmann commented on Jan 8, 2026

    @KlausLoeffelmann
    Member

    I...I don't see the difference between the first and the second clip.
    What's the issue here?

  3. aelurum commented on Jan 10, 2026

    @aelurum

    The difference is in the third menuStrip, which is rendered using System render mode.
    The text color of disabled items turns bright white when they receive focus (in DarkMode).
    The other two render modes don't have this problem.
    Also, there is no such problem in .NET 9, because disabled items there cannot be focused at all.

  4. self-assigned this
    on Jan 27, 2026
  5. removed
    untriaged
    on Sep 1, 2026
  6. Amy-Li03 commented on Sep 4, 2026

    @Amy-Li03
    Contributor

    Tested in the latest .NET 11 RC2 build: 11.0.100-rc.2.26453.107 + built private dls from the main branch of WinForms repo, it was fixed. When the MenuStrip's RenderMode is set to System, the text of a disabled item does not highlight when the mouse focus is moved to it.

    Image
  7. added this to the 12.0-preview1 milestone on Sep 4, 2026
  8. locked and limited conversation to collaborators on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💥 regression-releasearea-DarkMode

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions