private void button1_Click(object sender, EventArgs e)       

  {             string str = textBox1.Text;      

       char first = str[0];        

     string yu = str.Substring(1);           

  textBox1.Text = yu+str[0];                    }

        private void button2_Click(object sender, EventArgs e)       

  {             string str = textBox1.Text;      

       string q = str.Substring (0,textBox1 .Text.Length-1);         

    char q1 = str[textBox1.Text.Length - 2];          

   textBox1.Text = q1 + q;         }     }

可以textbox中的文字进行滚动《《《《

posted on 2013-12-11 16:59  独钓寒江雪kc  阅读(140)  评论(0编辑  收藏  举报