A dark color theme for the Visual Basic 6 and classic .NET IDEs, applied via a patched
VBA6.DLL and a registry import. No third-party tools required.
The VB6 and classic .NET IDEs (VB.NET, C# in the legacy IDE) ship with a fixed white
background editor that cannot be changed through the IDE options alone. The only way to get
a proper dark theme is to patch VBA6.DLL to unlock custom color support and then import
the color palette via the Windows Registry.
This repository packages the patched DLL, the registry file and the color configuration so the entire setup takes less than five minutes.
| File | Description |
|---|---|
VBA6.DLL |
Patched DLL with custom color support enabled |
Run.reg |
Windows Registry file with the dark color palette |
Tema Dark.ini |
Raw color palette definition (RGBA values) |
Backup/VBA6.DLL |
Original unmodified DLL for rollback |
Prerequisites: Visual Basic 6 or the classic .NET IDE installed on Windows.
-
Close the IDE completely before starting.
-
Back up your current
VBA6.DLL(already included inBackup/as reference):
C:\Windows\System32\VBA6.DLL
- Copy the patched
VBA6.DLLfrom this repository to the same path:
copy VBA6.DLL C:\Windows\System32\VBA6.DLL
You may need to take ownership of the file or run the command as Administrator.
-
Double-click
Run.regand confirm the registry import when prompted. -
Open the IDE. The editor will now use the dark color scheme.
The theme is applied with the following colors, defined in Tema Dark.ini and Run.reg:
| Role | Color |
|---|---|
| Background | #1E1E1E (dark gray) |
| Foreground / Normal text | #D4D4D4 (light gray) |
| Keywords | #569CD6 (blue) |
| Comments | #608B4E (green) |
| Strings | #D69D85 (peach) |
| Errors | #FF0000 (red) |
| Selection | #264F78 (dark blue) |
| Font | Consolas 10pt |
To revert to the original IDE appearance:
- Copy
Backup/VBA6.DLLback toC:\Windows\System32\VBA6.DLL. - Open the IDE Options and reset the editor colors manually, or re-import the original registry keys.