TextBox的高度随窗体可变this.textBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));实现textBox内文本自下向上一行一行添加显示
this.textBox.Multiline = true;这些属性可以在属性管理器里设置
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));实现textBox内文本自下向上一行一行添加显示
this.textBox.Multiline = true;这些属性可以在属性管理器里设置
我的意思是第一行文本出现在textBox显示区域的最下面,第二行文本
也出现在textBox的最下面,而第一行顺序向上滚动,以此类推。
textBox尺寸不固定,也就是说当textBox变大时,原先滚出的内容
还要显示。