winform之字符滚动

        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中的文字进行滚动《《《《

原文地址:https://www.cnblogs.com/kangchennb/p/3469702.html