Hello all, How can I call up a color pallet in VB and is it easy to use?
Printable View
Hello all, How can I call up a color pallet in VB and is it easy to use?
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!
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!