Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: beginner
Dec 9, 2002

Color2Html - Retrieving the HTML code for the specified Color

' Return the HTML code for the specified Color
' Example: MessageBox.Show(Color2Html(Color.Red)) ==> #ff0000
Function Color2Html(ByVal clr As Color) As String
    Return "#" & clr.ToArgb().ToString("x").Substring(2)
End Function
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap