这个是求救,这是任务?
VB2010的可以吗?
1)
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If UCase(Replace(Trim(Text1.Text), vbCrLf, "")) <> "END" Then
Open "d:\t1.txt" For Append As #1
Print #1, Text1.Text
Text1.Text = ""
Close #1
Else
Text1.Text = ""
End If
End If
End Sub
我也同求大神,来个脚印下次好找