代码来显示文件的内容RichTextBox中代码来显示文件的内容RichTextBox中
Private Sub Command2_Click()
Dim contentfile As String
On Error GoTo a
Form5.CommonDialog1.ShowOpen
Open Form5.CommonDialog1.FileName For Input As #1
Do Until EOF(1)
Input #1, contentfile
Form5.RichTextBox1 = Form5.RichTextBox1 + contentfile + vbCrLf
Loop
Close #1
a:
End Sub
请尽快给出解决方案 –
您的问题是什么? –
您还没有问过任何问题,所以我们无法给出解决方案。请阅读https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/并在发布时关闭大写锁定。 –