Skip to content

Commit bc714e6

Browse files
Fix bug where in Visual Basic VisualStyles no longer get applied.
1 parent 270f3bc commit bc714e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/ApplicationServices/WindowsFormsApplicationBase.vb

+4
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,10 @@ Namespace Microsoft.VisualBasic.ApplicationServices
550550
Debug.Assert(dpiSetResult, "We could net set the HighDpiMode.")
551551

552552
' Now, let's set VisualStyles and ColorMode:
553+
If (_enableVisualStyles) Then
554+
Application.EnableVisualStyles()
555+
End If
556+
553557
Application.SetColorMode(_colorMode)
554558

555559
#Enable Warning WFO5001 ' Type is for evaluation purposes only and is subject to change or removal in future updates.

0 commit comments

Comments
 (0)