注册 登录
编程论坛 C# 论坛

程序运行在交换时不能显示,寻求语句问题

编程要有思想 发布于 2013-10-13 12:16, 623 次点击
using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 单分支结构
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
      

         private void textBox1_TextChanged(object sender, EventArgs e)
        {
            String x =textBox1.Text;
           
        }
      

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            String y = textBox2.Text;
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            String z;
            String x = textBox1.Text;
            String y = textBox2.Text;
            z = x;
            x = y;
            y = z;
            this.listBox1.Text =x;
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

      

      
    }
}

6 回复
#2
编程要有思想2013-10-13 12:54
求各位看一下啦!在运行时,文本框里始终不显示内容,
#3
czzdcn1232013-10-15 00:47
这是.net里面的吧
#4
小xin2013-10-15 18:48
你用的是什么编程软件啊,亲,我想下个,怎么也没找到
#5
编程要有思想2013-10-28 13:11
回复 4楼 小xin
visual studio 2010
#6
zklhp2013-10-28 13:21
这是C语言版诶
#7
TonyDeng2013-10-28 14:11
這是C#,我給你轉過去。
1