Skip to content

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

Closed
@John-Qiao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions