通過程序將光標定位到RichText控件文本的末尾
代碼如下:
Private Void MoveCourlist()
{
/讓文本框獲得焦點
this . rich textbox 1 . focus();
//考試提示將光標位置設置到文本的末尾
this . rich textbox 1 . select(this . rich textbox 1 . textlength,0);
//滾動到控制光標
this . rich textbox 1 . Scroll to care();
}
代碼如下:
Private Void MoveCourlist()
{
/讓文本框獲得焦點
this . rich textbox 1 . focus();
//考試提示將光標位置設置到文本的末尾
this . rich textbox 1 . select(this . rich textbox 1 . textlength,0);
//滾動到控制光標
this . rich textbox 1 . Scroll to care();
}
0條評論