C#认证题4(使用标准Windons窗体控件)

 

  1.   private void numericUpDown1_ValueChanged(object sender, EventArgs e)
            {
                trackBar1.Value = (int)numericUpDown1.Value;
            }

    Test4-3

 

private void vScrollBar1_ValueChanged(object sender, EventArgs e)
        {
            this.BackColor = Color.FromArgb(vScrollBar1.Value, vScrollBar2.Value, vScrollBar3.Value);
        }

        private void vScrollBar2_ValueChanged(object sender, EventArgs e)
        {
            this.BackColor = Color.FromArgb(vScrollBar1.Value, vScrollBar2.Value, vScrollBar3.Value);
        }

        private void vScrollBar3_ValueChanged(object sender, EventArgs e)
        {
            this.BackColor = Color.FromArgb(vScrollBar1.Value, vScrollBar2.Value, vScrollBar3.Value);
        }

 

posted @ 2017-12-16 17:01  此人不在  阅读(100)  评论(0编辑  收藏  举报