zoukankan      html  css  js  c++  java
  • radioButton& listBox&numericUpDown 操作

    private void numericUpDown1_ValueChanged(object sender, EventArgs e)
    {
    if (numericUpDown1.Value == 1)
    radioButton1.Checked = true;
    if (numericUpDown1.Value == 2)
    radioButton2.Checked = true;
    if (numericUpDown1.Value == 3)
    radioButton3.Checked = true;

    }

    private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
    if (radioButton1.Checked)
    numericUpDown1.Value = 1;
    }

    private void radioButton2_CheckedChanged(object sender, EventArgs e)
    {
    if (radioButton2.Checked)
    numericUpDown1.Value = 2;
    }

    private void radioButton3_CheckedChanged(object sender, EventArgs e)
    {
    if (radioButton3.Checked)
    numericUpDown1.Value = 3;
    }

    private void checkBox1_CheckedChanged(object sender, EventArgs e)
    {
    if (checkBox1.Checked)
    listBox2.Items.Add("English");
    else
    listBox2.Items.Remove("English");
    }

    private void checkBox2_CheckedChanged(object sender, EventArgs e)
    {
    if (checkBox2.Checked)
    listBox2.Items.Add("German");
    else
    listBox2.Items.Remove("German");

    }

    private void checkBox3_CheckedChanged(object sender, EventArgs e)
    {
    if (checkBox3.Checked)
    listBox2.Items.Add("French");
    else
    listBox2.Items.Remove("French");
    }

  • 相关阅读:
    一些术语
    Professional Frontend Engineering
    爱上阿森纳,爱上一种信仰
    ThinkPHP 和 UCenter接口的冲突
    这个城市
    来自Google的10条价值观
    如何将Gb2312转为unicode?
    未完成的代码(JS)
    微软也用PHP?!
    博客园对"公告"的Js进行了过滤
  • 原文地址:https://www.cnblogs.com/silvia-z/p/7609034.html
Copyright © 2011-2022 走看看