vb6.0按钮控件数组怎么设置快捷键(

前端之家收集整理的这篇文章主要介绍了vb6.0按钮控件数组怎么设置快捷键(前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Option Explicit Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer) If KeyCode = Asc("A") Then '按下A键 Call sub_xxxx1 ElseIf KeyCode = Asc("B") Then '按下B键 Call sub_xxxx2 End If End Sub Private Sub Form_Load() Me.KeyPreview = True End Sub

猜你在找的VB相关文章