要求:编写一个Winform应用程序,内容自选
我们只学了一点点,不会搞,求大佬帮忙

解决方案 »

  1.   

    private void button1_Click(object sender, EventArgs e)
            {
                listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text);
            }
            private void button2_Click(object sender, EventArgs e)
            {
                listBox1.Items.RemoveAt(3);
            }
            private void button3_Click(object sender, EventArgs e)
            {
                switch (textBox1.Text)
                {
                    case "张三": textBox2.Text = "18956324017"; break;
                    case "李四": textBox2.Text = "14045689203"; break;
                    case "王五": textBox2.Text = "15632478952"; break;
                    case "何六": textBox2.Text = "13978542016"; break;
                }
            }
            private void button4_Click(object sender, EventArgs e)
            {
                switch (textBox1.Text)
                {
                    case "张三": listBox1.Items.RemoveAt(0); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
                    case "李四": listBox1.Items.RemoveAt(3); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
                    case "王五": listBox1.Items.RemoveAt(2); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
                    case "何六": listBox1.Items.RemoveAt(1); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
                }
            }
      

  2.   

    自选,直接选个messagebox.show hello world,完事
      

  3.   

    帮另一个学校做的一个毕业设计,你可以参考一下,可以给你部分源代码SQL数据库,C#