
VB6.0中,在TEXT控件输入文字,按下ENTER键后,如何代替command1的onclick事件?
2个回答
展开全部
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then Command1_Click
End Sub
If KeyAscii = 13 Then Command1_Click
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询