|
-
Jul 15th, 2002, 01:37 AM
#1
Thread Starter
Member
Color Palette
Hello all, How can I call up a color pallet in VB and is it easy to use?
-
Jul 15th, 2002, 01:54 AM
#2
Addicted Member
Yes, it is easy.
1) Start a New Project
2) File - Components...
3) Place a check next to Microsoft Common Dialog Control 6.0
4) Add a CommonDialog to your form
5) Show the color palette with this code: CommonDialog1.ShowColor
6) After showing the color palette with code you can use CommonDialog1.Color to find out what color was selected
7) Add some error catching to handle the Cancel button in the color palette
Hope that this helps!
-
Jul 15th, 2002, 03:32 AM
#3
Thread Starter
Member
Wow
Hey thanks alot for the help. Everything works out find. I just wish my brain would remeber things like this. I totally knew how to do this but just couldn't remeber. Don't you just hate that. Well hey thanks again!
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
|