如题!

解决方案 »

  1.   

    更改 TextBox 的属性如下: this.textBox1.Multiline = true;
    this.textBox1.ScrollBars = stem.Windows.Forms.ScrollBars.Both;";
    this.textBox1.WordWrap = false;
      

  2.   

    上面写错了,是:this.textBox1.Multiline = true;
    this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
    this.textBox1.WordWrap = false;
      

  3.   

    编译器错误信息: CS0117: “System.Web.UI.WebControls.TextBox”并不包含对“ScrollBars”的定义源错误: 行 28:  lblMessage.Visible = false;
    行 29:  //this.txtFileContent.Multiline = true;
    行 30:  txtFileContent.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
    行 31:  this.txtFileContent.WordWrap = false; 
      

  4.   

    sutalon给你的方法是基于Form编程的,你在Web编程里自然不能实现,会报错
      

  5.   

    是啊。在 Web 中如何实现啊?