You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visual Styles cannot be enabled any longer in .NET 9.
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, in all of them.
Issue description
By default, (classic) Visual Styles are enabled in the Visual Basic Application Framework. This is also reflected by the Application Framework Project System Property Pages. Enabling or Disabling Visual Styles has no impact for Visual Basic Application Framework Apps.
Steps to reproduce
Create a new .NET 9 VB App Framework WinForms App.
Alternatively, load an existing VB App.
Make sure in the Project Property Pages, that Visual Styles are activated.
Confirm, in Application.MyApp that the settings from the UI got applied and the correct code got code-generated.
Activity
Syareel-Sukeri commentedon Aug 22, 2024
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, it was fixed:
MandiMan commentedon Aug 22, 2024
Verified this issue in the latest .NET9.0 SDK build: 9.0.100-rc.2.24420.21 + dlls built from Winforms main branch, it was fixed:

Nora-Zhou01 commentedon Aug 26, 2024
Verified the issue with .NET 9.0.100-rc.1.24422.10 test pass build that the issue has been fixed, which have the same results as above.
MelonWang1 commentedon Aug 29, 2024
Verified this issue in the latest .NET9.0 SDK build: 9.0.100-rc.2.24428.6, it was fixed. Same test result as above.
Nora-Zhou01 commentedon Sep 27, 2024
Verified the issue with .NET 9.0.100-rc.2.24474.11 test pass build that the issue has been fixed, which have the same results as above.