Skip to content

Form's FormBorderColor property value always is Black although has changed it to another color value #11897

Closed

Description

@John-Qiao

.NET version

.NET SDK 9.0.100-rc.1.24415.1 + build private dlls from winforms repo release/9.0 branch

Did it work in .NET Framework?

No

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

No, this is a new feature Dark Mode: #11857

Issue description

Form's FormBorderColor property value always is Black although has changed it to another color value.

Actual result:
The value is 'Black' in textbox control.
FormBorderColor

Expected result:
The value should be 'Green' in textbox control.

More info:
This issue occurs in FormCaptionBackColor and FormCaptionTextColor properties too.

Steps to reproduce

  1. Launch the FormBorderColor-TestApp.zip project in VS and run it.
  2. Observe the value in textbox control.

Activity

  1. added
    untriaged
    on Aug 16, 2024
  2. changed the title [-][Dark Mode] Form's FormBorderColor property value always is Black although has changed it to another color value[/-] [+]Form's FormBorderColor property value always is Black although has changed it to another color value[/+] on Aug 16, 2024
  3. added
    🚧 work in progress
    on Aug 17, 2024
  4. removed
    untriaged
    on Aug 19, 2024
  5. John-Qiao commented on Aug 20, 2024

    @John-Qiao
    ContributorAuthor

    Verified this issue on 9.0.100-rc.2.24419.18 with dlls built from winforms repo of main branch, it was fixed: the values all are correct in textbox controls now.

    11897-testresult

  6. added this to the 9.0 RC2 milestone on Aug 21, 2024
  7. MandiMan commented on Aug 22, 2024

    @MandiMan
    Contributor

    @KlausLoeffelmann verified this issue in the latest .NET 9 RC1 build: 9.0.100-rc.1.24421.9 from https://aka.ms/dotnet/9.0.1xx-rc1/daily/dotnet-sdk-win-x64.exe, which partial fixed that can get the expected values "Green" in textbox controls, but FormBorderColor, FormCaptionBackColor, FormCaptionTextColor are not set to green.
    image
    Write the code in form_load, it was fixed, but in constructor, partial fixed.
    image

  8. modified the milestones: 9.0 RC2, 9.0 RC1 on Aug 22, 2024
  9. MandiMan commented on Aug 27, 2024

    @MandiMan
    Contributor

    Verified the issue with .NET 9.0.100-rc.1.24422.10 test pass build that the issue partial fixed in constructor and form_load. We can get the expected values "Green" in textbox controls, but FormBorderColor, FormCaptionBackColor, FormCaptionTextColor are not set to green.
    image

    image

  10. Nora-Zhou01 commented on Aug 29, 2024

    @Nora-Zhou01
    Contributor

    Verified this issue in the latest .NET9.0 SDK build: 9.0.100-rc.2.24428.9, write the code in form_load, it was fixed, but in constructor, partial fixed.
    1
    2

  11. MandiMan commented on Sep 4, 2024

    @MandiMan
    Contributor

    Verified the issue with .NET 9.0.100-rc.1.24452.12 test pass build that the issue partial fixed in constructor and form_load. We can get the expected values "Green" in textbox controls, but FormBorderColor, FormCaptionBackColor, FormCaptionTextColor are not set to green. Test result is same as #11897 (comment)

  12. John-Qiao commented on Sep 27, 2024

    @John-Qiao
    ContributorAuthor

    Verified the issue with .NET 9.0.100-rc.2.24474.11 test pass build that the issue partial fixed in constructor and form_load. We can get the expected values "Green" in textbox controls, but FormBorderColor, FormCaptionBackColor, FormCaptionTextColor are not set to green. Test result is same as #11897 (comment)

  13. John-Qiao commented on Oct 9, 2024

    @John-Qiao
    ContributorAuthor

    Verified this issue with latest .NET 10.0.100-alpha.1.24508.48 from main branch, it was fixed: the values all are correct in textbox controls now.

    Image

  14. locked and limited conversation to collaborators on Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚧 work in progress

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions