Save your changes to the EXE and fire up VB6. Just use the appropriate hex values in RGB format, followed by a zero byte. The next four bytes specify the next color and so on until you get to FFFFFF00 (white) ending at offset 0圎2333.Įdit any of these four-byte values to your choosing. This represents the color black in RRGGBBAA format (alpha isn't supported so it's really just RRGGBB00 format). (Optional, but recommended).įire up your favorite hex editor (shout out to HxD) and open VB6.EXE. (Note: This is for VB6 SP6, file version 6.0.97.82).īackup your VB6.EXE file in your VB98 program folder. However, it IS possible to change the 16 built-in colors with your own. Therefore I think it is technically not possible to assign other colors. I have tried several options of entering different values (e.g. Any other value will not be accepted and it defaults back to AUTO. The problem is that the VBA Editor does only support these internal values and the highest number it understands is 16. The background of the code editor will now be red. To give it a try: Close Excel, change the first value of CodeBackColors to 5 and restart Excel. The values are the internal id for the color, 0 means AUTO coloring, 11 shows cyan, 5 red etc. For example, the first value inside CodeBackColors is the background color and the first value inside CodeForeColors is the foreground color for normal text. HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common\CodeBackColorsĮach of these keys contains a list of values (separated by space) for each entry inside Tools -> Options -> Editor Format. HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common\CodeForeColors VBA reads the settings for the colors from these registry keys:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |