示例#1
0
        private void buttonBackColorPicker_Click(object sender, EventArgs e)
        {
            // Show the color dialog.
            DialogResult result = colorDialog1.ShowDialog();

            // See if user pressed ok.
            if (result == DialogResult.OK)
            {
                // Set form background to the selected color.
                textBoxBackColorPicker.BackColor = colorDialog1.Color;
                classCustomizeScreenLookAndFeel.customizeMyScreen(this, textBoxBackColorPicker.BackColor);
                MetriconCommon.SetSettings("BackColor", "#" + colorDialog1.Color.Name);
            }
        }