.NET version
.NET 11 SDK build: 11.0.100-rc.1.26380.103
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature of #14811
Issue description
When switching a GroupBox from VisualStylesMode.Classic to VisualStylesMode.Net11, child controls are incorrectly positioned for FlatStyle.Standard and FlatStyle.Popup.
After the switch, the child controls (Button and CheckBox)near the top of the GroupBox extend into (or beyond) the GroupBox header/border area instead of remaining within the client area.
FlatStyle.Flat and FlatStyle.System do not exhibit this issue.
VisualStylesMode = Classic:
VisualStylesMode = NET11:
Steps to reproduce
- Create a WinForms (.NET 11) application.
- Add four
GroupBox controls with the following FlatStyle values:
- Standard
- Flat
- Popup
- System
- Place a
Button and a CheckBox near the top of each GroupBox.
- Run the application with
VisualStylesMode.Classic.
- Switch the Form (or application) to
VisualStylesMode.Net11 to run and observe.
.NET version
.NET 11 SDK build: 11.0.100-rc.1.26380.103
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature of #14811
Issue description
When switching a
GroupBoxfrom VisualStylesMode.Classic to VisualStylesMode.Net11, child controls are incorrectly positioned forFlatStyle.StandardandFlatStyle.Popup.After the switch, the child controls (
ButtonandCheckBox)near the top of theGroupBoxextend into (or beyond) the GroupBox header/border area instead of remaining within the client area.FlatStyle.FlatandFlatStyle.Systemdo not exhibit this issue.VisualStylesMode = Classic:
VisualStylesMode = NET11:
Steps to reproduce
GroupBoxcontrols with the following FlatStyle values:Buttonand aCheckBoxnear the top of eachGroupBox.VisualStylesMode.Classic.VisualStylesMode.Net11to run and observe.