大家好!我在学习VB编程的时候遇到这样的问题:用一个事件如KeyDown事件读取一文件中的一行,用另一事件如KeyUp事件让之前显示的内容消失Private Sub Form_Keyup(KeyCode As Integer, Shift As Integer)
Dim MyRecord As Record, Position, Char
If KeyCode = 112 Then
Open App.Path & "\MyFile.txt" For Random As #1 Len = Len(MyRecord)
Position = 3  ' 定义记录号。
Get #1, Position, MyRecord
Print MyRecord.Name
Close #1
Else: Print
End If这一段程序可以实现读取的功能,但让显示的内容消失我不知道该如何操作。还望高手指点一下,不胜感激!