谢了
解决方案 »
- 各位VB高手,菜鸟刚学VB+Access,希望有空闲时间的高手能帮忙配置后台的代码,谢谢!
- 请问vb如何操作sql数据库?
- ACCESS数据记录恢复,有没有办法,在线等待,高手请来
- 这是vb的bug吗???请问怎么解决
- 求助:一个功能超简单的资源管理器窗口
- 请问怎样用shell命令将程序加入计划任务中
- 请教MSHFlexGrid控件问题!在线等待!
- VB的错误信息的处理
- 关于开发考试系统的问题
- 我要查找日期字段小于等于DATA1且大于等于DATA2的记录但是提示代码出错为什么
- 【注】因为结帖,所以散分,请版主勿删,至少看一下内容嘛:)
- 为什么从pop3接受邮件,有时候一封邮件会被分成2个文件存在本地硬盘上。(附代码)
RichTextBox1.SetFocus
SendKeys "{End}"
End Sub
SendKeys "^{End}"
richtextbox1.setfocus
sendkeys "{end}"
end if
------------user a timer:Private Sub Form_Load()
RichTextBox1.Text = String(300, "x")
Timer1.Enabled = True
Timer1.Interval = 100
End SubPrivate Sub Timer1_Timer()
If Me.ActiveControl = RichTextBox1 Then SendKeys "^{end}"
End Sub
RichTextBox1.SelStart=Len(RichTextBox1)
RichTextBox1.SetFocus
.SelStart = Len(.Text)
.SelLength = 1
.SetFocus
End With
回复 northwolves(狼行天下
user a timer:Private Sub Form_Load()
RichTextBox1.Text = String(300, "x")
Timer1.Enabled = True
Timer1.Interval = 100
End SubPrivate Sub Timer1_Timer()
If Me.ActiveControl = RichTextBox1 Then SendKeys "^{end}"
End Sub这样虽能实现,但不停地sendkeys好像太浪费资源了,没有别的办法啦
RichTextBox1.Text = String(300, "x")
End SubPrivate Sub RichTextBox1_Click()
SendKeys "{End}"
End Sub
Private Sub RichTextBox1_Click()
SendKeys "{End}"
End Sub
---------------------
对了。最好是SendKeys "^{End}"
谢谢帮忙。