键盘输入问题

ccl2000 2001-07-19 04:14:03
客户要求在combobox控件中按空格键时,循环显示text的内容。
...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
iamfancy 2001-07-19
  • 打赏
  • 举报
回复
同意
ltpao 2001-07-19
  • 打赏
  • 举报
回复
Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Then
If Combo1.ListIndex >= Combo1.ListCount - 1 Then
Combo1.ListIndex = 0
Else
Combo1.ListIndex = Combo1.ListIndex + 1
End If
KeyAscii = 0
End If
End Sub

7,762

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧