关于openfiledialog的使用问题
Dim filename As StringWith OpenFileDialog1
.Title = "文件"
.Filter = "txt 文档(*.txt)|*.txt"
.ShowDialog()
filename = .FileName
End With
If filename.Length > 0 Then
Me.RichTextBox1.LoadFile(filename)
End If
这里loadfile出现问题,请问是什么原因啊?