Skip to content

WinForms PrintPreviewControl ForeColor displays incorrectly only when set to White #14420

Description

@Amy-Li03

.NET version

11.0.100-preview.3.26175.115

Did it work in .NET Framework?

Yes

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

It works on .NET 8.0, and it starts repro from .NET 9.0

  1. After PR: fix #13861 The custom ForeColor set on PrintPreviewControl is not rendered correctly #13863 fixed in .NET 11, PrintPreviewControl ForeColor displays incorrectly only when set to White
  2. Since this PR was not merged into .NET 9.0 and 10.0, all custom ForeColor settings on PrintPreviewControl are not rendered correctly

Issue description

The ForeColor of PrintPreviewControl was set as White in properties window, however, it appears Black in the form designer.

.NET 11.0 project:
Image

.NET 8.0 project:
Image

Steps to reproduce

  1. Create a WinForms .NET application
  2. Add a PrintPreviewControl to form designer, observe that the ForeColor in Properties window is White, in form designer is Black
  3. Build and run the application, it's same as in design time

Activity

  1. added
    untriaged
    on Mar 26, 2026
  2. added
    💥 regression-release
    on Mar 26, 2026
  3. removed
    untriaged
    on Mar 26, 2026
  4. added a commit that references this issue on Mar 26, 2026
    6b3f581
  5. added
    waiting-review
    on Mar 26, 2026
  6. added
    tenet-accessibility
    and removed on Mar 27, 2026
  7. added theissue type on Mar 27, 2026
  8. added this to the 11.0 Preview3 milestone on Mar 27, 2026
  9. added a commit that references this issue on Jul 2, 2026
    dd60dac
  10. Olina-Zhang commented on Jul 3, 2026

    @Olina-Zhang
    Member

    Tested in the latest .NET 11 Preview 7 build: 11.0.100-preview.7.26352.103 + built private dls from the main branch of Winforms repo, it was fixed for PrintPreviewControl's foreColor when setting its value to different color, includes White.

    GH14420_fixed.mp4
  11. locked and limited conversation to collaborators on Aug 2, 2026
  12. added a commit that references this issue on Aug 14, 2026
    c522de4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💥 regression-releasetenet-accessibilitywaiting-review

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions