|
-
Jan 13th, 2006, 06:25 AM
#1
Thread Starter
Lively Member
Color obj
(Noob quest) How do I add all the members of color (or pen) object to the list or combo box? Thanks in advance.
Sanjay.
-
Jan 13th, 2006, 10:01 AM
#2
Re: Color obj
you are talking including system colors and web colors? or just colors like red, green, etc..??
-
Jan 13th, 2006, 02:19 PM
#3
Re: Color obj
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
I don't live here any more.
-
Jan 14th, 2006, 02:35 AM
#4
Thread Starter
Lively Member
Re: Color obj
Yes kleinma,
I want to add colors to the list.
What abt system color and web colors?
Sanjay
-
Jan 14th, 2006, 02:43 AM
#5
Re: Color obj
Are you trying to give the user options to choose colors?? If so, there is a ColorDialog control that has that ability already...
-
Jan 14th, 2006, 03:19 AM
#6
Thread Starter
Lively Member
Re: Color obj
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|