(Noob quest) How do I add all the members of color (or pen) object to the list or combo box? Thanks in advance.
Sanjay.
Printable View
(Noob quest) How do I add all the members of color (or pen) object to the list or combo box? Thanks in advance.
Sanjay.
you are talking including system colors and web colors? or just colors like red, green, etc..??
VB Code:
Dim c As Color For i As Integer = 1 To 174 c = Color.FromKnownColor(CType(i, KnownColor)) ListBox1.Items.Add(c.Name) Next i
Yes kleinma,
I want to add colors to the list.
What abt system color and web colors?
Sanjay
Are you trying to give the user options to choose colors?? If so, there is a ColorDialog control that has that ability already...
Yah, I used that color dialog control, but just for query, I want to access the colors of color object.
The code posted by wossname adds all the member to list, but how can i differentiate colors and other member?
Sanjay