Results 1 to 3 of 3

Thread: Color Palette

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    Question Color Palette

    Hello all, How can I call up a color pallet in VB and is it easy to use?

  2. #2
    Addicted Member overhill's Avatar
    Join Date
    Mar 2000
    Location
    KS, United States
    Posts
    181
    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!

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    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
  •  



Click Here to Expand Forum to Full Width