多行textbox控件显示内容,怎样定时依次显示各行内容呢?

解决方案 »

  1.   

    如果是人为换行的话,直接读到List中,或者自己根据 #10#13 解析
      

  2.   

    private string s = @"abc
    def
    ghi
    jkl";private int currentindex = 0;private void Timer_Tick(object sender, EventArgs e)
    {
        textBox1.Text = s.Split(new string[] { "\r\n" })[currentindex];
        currentindex = (currentindex + 1) % s.Split(new string[] { "\r\n" }).GetLength(0);
    }
      

  3.   

    用textbox,换行是后台通过设置其texr值为:.../r/n...换的,设置其属性为readonly
    //this.textBox2.Select(this.textBox2.TextLength,0);
    不起作用
      

  4.   

    http://topic.csdn.net/u/20120211/11/0fec47bb-c8e1-4a5c-8861-cdb89fea46f4.html?58944
    大家帮忙看看吧
      

  5.   


    我把textbox设置为多行,并且右侧有上下按钮,我的希望仍然可以通过按钮看到各行,只是显示的行可以定时变
      

  6.   

    设置TextBox.SelStart,\,设置光标位置。