VB6.0中,在TEXT控件输入文字,按下ENTER键后,如何代替command1的onclick事件?

2025-03-13 16:45:50
推荐回答(1个)
回答1:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then Command1_Click
End Sub