textbox已经设置为多行
现在想在属性中输入多行的内容
试了下,\r\n不行,加ctrl,加shift都不行

解决方案 »

  1.   

     textBox1.AcceptsReturn = true;
                textBox1.Multiline = true;
                textBox1.Text = "A\r\nB";
                
      

  2.   

    private void Form1_Load(object sender, EventArgs e)
            {
                this.textBox1.Multiline = true;
                this.textBox1.Height = 400;
                this.textBox1.Text = "aa\r\nbb\r\n";
                this.textBox1.AppendText("cc" + Environment.NewLine);
                this.textBox1.AppendText("dd" + Environment.NewLine);
            }
      

  3.   

    试了下没问题啊 可换行啊
    textBox1.Size = new Size(40, 40);
                textBox1.Multiline = true;
                textBox1.Text = "ddd";
                textBox1.Text += "\r\nddddd";
      

  4.   

    我是问在属性(properties)对话框中设置的时候,不是写代码实现
      

  5.   

    设置下这个看看 AcceptsReturn