VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays

by J.J. Dobson (1 Submission)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 13th May 2010
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays the Hex value to use in the VB foreground

API Declarations


Dim S As String


Rate Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays



CommonDialog1.ShowColor
C = CommonDialog1.Color
S = Hex(C)
While Len(S) < 6
S = "0" + S
Wend
S = "&H00" + S + "&"
Form1.BackColor = C
Text1.Text = S
End Sub


Download this snippet    Add to My Saved Code

Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays Comments

No comments have been posted about Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays . Why not be the first to post a comment about Displays color selection dialog. Using Custom Colors choose from 16,000,000 colors and it displays .

Post your comment

Subject:
Message:
0/1000 characters