楚江南怎么死的:如何写VB用回车键代替鼠标的click事件的程序
来源:百度文库 编辑:高校问答 时间:2024/05/01 22:59:55
找到控件的KeyPress事件:如文本控件
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
你要click的代码
End If
End Sub
编辑keypress 属性:
ch<13>即可
高校问答是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:高校问答 时间:2024/05/01 22:59:55
找到控件的KeyPress事件:如文本控件
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
你要click的代码
End If
End Sub
编辑keypress 属性:
ch<13>即可