第1个回答 2016-05-15
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string s = label1.Text;
s = label2.Text;
label2.Text = label1.Text;
label1.Text = s;
string a = textBox1.Text;
a = textBox2.Text;
textBox2.Text = textBox1.Text;
textBox1.Text = a;
}
}
}本回答被网友采纳