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
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