ColorDialog Box Question

J

jcrouse

I am trying to control the default color that is selected the first time my
applciation is run and the color dialog box launches. I have a Tools/Options
menu item in my application. On the Options form is two picture boxes. When
I click on either one of them the ColorDialog box appears and the default
selected color is black. This happens even if the picture box has a
different colored background. If I then select, say, yellow the picture box
backcolor changes to yellow. When I select my OK button to close the form,
the color is written out to a line in an XML file. When I launch the
application again it reads the XML file and sets the Options proberly,
including the Yellow for the picturebox.backcolor. However, the first time I
launch the color dialog box again, it's default color is black. How can I
make the default selected color be the same as the backcolor of the picture
box I am clicking on even on the first time thru?

Thank you,
John
 
S

SStory

Seems maybe you should set the COLOR property of the color dialog befores
showing

HTH,

Shane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top