Skip to content

GroupBox does not render BackgroundImage correctly when FlatStyle is Standard, Popup, or System with VisualStylesMode.Net11 mode #14779

Closed

Description

@Amy-Li03

.NET version

.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-3 branch of https://github.com/KlausLoeffelmann/winforms repo

Did it work in .NET Framework?

Yes

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

Not support, new feature

Issue description

In VisualStylesMode.Net11 mode design time and run time, GroupBox.BackgroundImage is not rendered correctly when the control uses FlatStyle.Standard/Popup/System values. BackgroundImage is painted over child control(Button) borders in System FlatStyle mode
The background image is only rendered correctly when FlatStyle.Flat is used.

Image

Behavior from VisualStylesMode.Classic:
Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11
  2. Set VisualStylesMode = VisualStylesMode.Net11
  3. Add several GroupBoxs to form designer with BackGroundImage
  4. Configure different FlatStyle values: Standard/Popup/System

Activity

  1. added
    untriaged
    on Jul 20, 2026
  2. added
    🪲 bug
    NewApi-Net11
    and removed
    untriaged
    on Jul 20, 2026
  3. changed the title [-][VisualStylesMode: Net11] GroupBox does not render BackgroundImage correctly when FlatStyle is Standard, Popup, or System with VisualStylesMode.Net11 mode[/-] [+]GroupBox does not render BackgroundImage correctly when FlatStyle is Standard, Popup, or System with VisualStylesMode.Net11 mode[/+] on Jul 21, 2026
  4. added
    rendering-or-artifacts-issues
    on Jul 21, 2026
  5. Zheng-Li01 commented on Sep 4, 2026

    @Zheng-Li01
    Member

    Verified the issue with latest .NET11 11.0.0-rc.2.26453.107 + private dlls built from main branch of dotnet/winforms repro, the issue has been fixed as below screenshot.

    Image Image
  6. added this to the 12.0-preview1 milestone on Sep 4, 2026
  7. Zheng-Li01 commented on Sep 23, 2026

    @Zheng-Li01
    Member

    Verified the issue with .NET 11 Oct 2026 Update Validation test pass build .NET 11.0.0-RC.2.26427.104, the issue has been fixed that have the same test results as above.

  8. locked and limited conversation to collaborators on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🪲 bugNewApi-Net11rendering-or-artifacts-issues

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions