|
-
Jun 2nd, 2006, 10:54 AM
#1
New Member
Re: VB.Net:How to add all colors in listbox
hi softkans,
try this
At the top
Imports System.Reflection
and then ...
Dim properties As PropertyInfo() = GetType(System.Drawing.Color).GetProperties(BindingFlags.Static Or BindingFlags.Public)
Dim color As PropertyInfo
For Each color In properties
ListBox1.Items.Add(color.Name)
Next
please RESOLVED this post if u got the result
-
Jun 3rd, 2006, 01:50 AM
#2
Thread Starter
Lively Member
Re: VB.Net:How to add all colors in listbox
 Originally Posted by raibow
hi softkans,
try this
At the top
Imports System.Reflection
and then ...
Dim properties As PropertyInfo() = GetType(System.Drawing.Color).GetProperties(BindingFlags.Static Or BindingFlags.Public)
Dim color As PropertyInfo
For Each color In properties
ListBox1.Items.Add(color.Name)
Next
please RESOLVED this post if u got the result
ok raibow.. thanks
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
|