|
|
#2
qlong07282008-09-22 15:20
|
Function openfile() As String
OpenFileDialog1.Title = "open dialog"
'定義文件過濾器的屬性
OpenFileDialog1.Filter = "rich text file |*.rch |*.txt"
OpenFileDialog1.ShowReadOnly = True
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
openfile = OpenFileDialog1.FileName
Else
openfile = ""
End If
請幫忙解決