How to convert from VB color format to the HTML format

Today I needed a way to convert from VB color format to the hexadecimal HTML format so after 5-10 minutes I came with the code & post below.

Visual Basic stores the color data in the following format : 00BBGGRR so the next logical step to extract the information in the format we need ( #RRGGBB ) is to inverse the red component with the blue component.Simple, right? 🙂

Visual Basic [Show Plain Code]:
  1. span style=”color: #ff0000;”>"00000""#"

One comment on “How to convert from VB color format to the HTML format

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.