1.c#中让窗口全屏的两句代码:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
2.RichTextBox怎么让滚动条总是自动滚动到最底端?
this.richTextBox2.Focus(); //让文本框获取焦点
this.richTextBox2.Select(this.richTextBox2.TextLength, 0);//设置光标的位置到文本尾
this.richTextBox2.ScrollToCaret(); //滚动到控件光标处
Tags:
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。