Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 13 Then
If Index <> 63 Then
SendKeys vbTab
Else
Text1.Item(2).SetFocus
End If
End If
KeyAscii = 0
End Sub
If KeyAscii = 13 Then
If Index <> 63 Then
SendKeys vbTab
Else
Text1.Item(2).SetFocus
End If
End If
KeyAscii = 0
End Sub
解决方案 »
- 执行完查询语句后,recordset当前的记录是那一条?
- 数学计算:1+2*2+3*3**+4*4*4*4+5*5*5*5*5……
- 如何用vb删除access表,急!!
- 各位大哥,小弟刚学vb,迫切希望有人指点,请大家都近来聊一下,谢谢了,分不成问题
- 求关于开发dll的教程,请大家给予帮助,这里先谢过了!
- 在线等待!!!!!!标题栏上关闭按钮问题
- 请问
- 谁了解“NMEA0183通信协议 ”给解释一下。
- 如何得到*****号下的密码?????急
- 如何保存自己需要的帖子?
- 大家来访问我的论坛呀!!!! 〓【 上海甲鱼天地 】〓
- liucai(流才)兄请进,GetObjectContext 的问题还没解决,GetObjectContext总是返回Nothing!!
text2(i+1).setfocus
end if
text2(index+1).setfocus
end if
然后在text1的keydown时间中
if keycode=13 or keycode=40 then
if index<63 then sendkeys "{Tab}"
elseif keycode=38 then
if index>0 then sendkeys "+{Tab}"
end if
13是回车,40是向下箭头,38是向上箭头.
即使不是属于一个数组的,方法稍作改进同样适用.
然后在text1的keydown时间中
if keycode=13 or keycode=40 then
if index<63 then sendkeys "{Tab}"
elseif keycode=38 then
if index>0 then sendkeys "+{Tab}"
end if
13是回车,40是向下箭头,38是向上箭头.
即使不是属于一个数组的,方法稍作改进同样适用.
if index<>63 then
text2(index+1).setfocus
else
text2(0).setfocus
end if
end if
If KeyAscii = 13 Then
SendKeys "{Tab}"
End If