Private Sub Text1_KeyPress(KeyAscii As Integer) 什么意思
PrivateSubText1_KeyPress(KeyAsciiAsInteger)IfKeyAscii=13ThenCommand1_ClickEndIfEndSub...
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub dataCombo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub dataCombo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
这些代码是什么意思 展开
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub dataCombo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
Private Sub dataCombo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
这些代码是什么意思 展开
1个回答
展开全部
Private Sub dataCombo1_KeyPress(KeyAscii As Integer)
.....Private Sub:一个私有的过程
.....dataCombo1_KeyPress:控件dataCombo1的KeyPress事件(按下键盘)
.....KeyAscii As Integer:按下那个键的Ascii码的值,返回值为整数
If KeyAscii = 13 Then
.....如果KeyAscii 的值为13(13是回车键的Ascii码)则(也就是如果按下的键是回车键)
Command1_Click
.....呼叫按钮控件Command1的Click(单击)事件
End If
.....条件结束
End Sub
.....过程结束
.....Private Sub:一个私有的过程
.....dataCombo1_KeyPress:控件dataCombo1的KeyPress事件(按下键盘)
.....KeyAscii As Integer:按下那个键的Ascii码的值,返回值为整数
If KeyAscii = 13 Then
.....如果KeyAscii 的值为13(13是回车键的Ascii码)则(也就是如果按下的键是回车键)
Command1_Click
.....呼叫按钮控件Command1的Click(单击)事件
End If
.....条件结束
End Sub
.....过程结束
来自:求助得到的回答
名片
2024-10-28 广告
2024-10-28 广告
作为优菁科技(上海)有限公司的一员,Altair HyperWorks是我们重点代理的CAE软件套件。该软件以其全面的仿真能力、丰富的建模工具和高效的优化设计功能著称,广泛应用于汽车、航空航天、能源及电子等行业。HyperWorks通过集成...
点击进入详情页
本回答由名片提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询