namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text=textBox1.Text.Substring(1)+textBox1.Text.Substring(0,1);//向左
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text=
textBox1.Text.Substring(textBox1.Text.Length-1)+textBox1.Text.Substring(1,textBox1.Text.Length);
//向右
}
}
}
|