Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Print wo
End If
End Sub
我觉得这样写没错啊~可是 我每次在text1中按回车键,没有什么反应,只有咚咚的声音,也没有wo的输出。
为什么me.print"wo"就可以呢~
我主要是想问
怎样才可以按回车键让程序自动运行?
只要
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
"这里填要运行的东西"
End If
End Sub
就可以了么,可是还是不行呢。问题出在哪里?