代碼來顯示文件的內容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/並在發佈時關閉大寫鎖定。 –