输入指定字符个数就自动回车
在一个名为ID的控件中,当输入等于指定的次数(这里是9次),就自动回车。Private Sub ID_KeyUp(KeyCode As Integer, Shift As Integer) Static intKnm As Integer intKnm = intKnm + 1 If intKnm = 9 Then SendKeys "{ENTER}" intKnm = 0 End If End Sub
--------------------------------------------------------------------------------
相关文章
键盘常用代码一览表 2003-10-17 19:54:02
为何窗体的键盘事件不响应? 2003-10-17 18:56:56
如何自定义三个键的组合键 2003-10-17 18:54:45
启动控制面板命令大全 2003-10-10 10:21:08
|