楚江南怎么死的:如何写VB用回车键代替鼠标的click事件的程序
来源:百度文库 编辑:高校问答 时间:2024/05/22 14:05:28
找到控件的KeyPress事件:如文本控件
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
你要click的代码
End If
End Sub
编辑keypress 属性:
ch<13>即可
找到控件的KeyPress事件:如文本控件
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
你要click的代码
End If
End Sub
编辑keypress 属性:
ch<13>即可