コード例 #1
0
        private void OnColorClick(object sender, EventArgs e)
        {
            ColorInputDialog inputDialog = new ColorInputDialog();

            inputDialog.ShowDialog();

            pnlColor.BackColor = inputDialog.GetColor();
        }
コード例 #2
0
        private void OnColorClick(object sender, EventArgs e)
        {
            ColorInputDialog inputDialog = new ColorInputDialog();

            inputDialog.ShowDialog();

            pnlColor.BackColor = inputDialog.GetColor();
        }