日期:2014-05-18 浏览次数:21045 次
void btn_Click(object sender, RoutedEventArgs e)
{
string text = textBox1.Text;
char last = text[text.Length - 1];
string other = text.Substring(0, text.Length - 1);
this.defaultTextBlock.Text = last + other;
}
------解决方案--------------------
有一行没有改过来
void btn_Click(object sender, RoutedEventArgs e)
{
string text = textBox1.Text;
char last = text[text.Length - 1];
string other = text.Substring(0, text.Length - 1);
[color=#FF0000]textBox1.Text = last + other;[/color]
}
------解决方案--------------------
textBox1.Text = textBox1.Text.SubString(1) + textBox1.Text.SubString(0, 1);
------解决方案--------------------