Implement Dark Mode In VS2022 VB Project

V. Shane Curtis 0 Reputation points
2025-04-09T01:16:00.2+00:00

Hello

Is there any way to implement Dark Mode in a VB 2022 project? I have cataracts and the glare from a white form is blinding. I have implemented Dark Mode in Windows and in every app that supports it. I need it at the project level. Any help you can provide is appreciated.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-04-10T21:16:59.1833333+00:00

    Hi

    Second attempt to get a post through, maybe it is the forum still lumbering its way through the posts so this and an earlier version of this may both show up.

    Basically, what I say in the earlier post was:

    In my case, I design all my Project(s) Form(s) with a Dark background, and all Controls such as RichTextBox, GroupBox etc., with suitable foregrounds and backgrounds. May look like a pain to do, but actually is straightforward and not overly time consuming.

    So, a case of di-it-yourself I think.

    0 comments No comments

  2. Castorix31 88,381 Reputation points
    2025-04-22T14:43:48.1566667+00:00

    Another way is to use VB.NET + WPF or WinUI 3, where Dark/Light modes are handled easily

    I just uploaded a test sample in VB.NET/ NET. 8.0 + WinUI 3 (with XAML islands) :

    VB_WinUI3_DesktopWindowXamlSource

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.