File open dialog box in with particular format to open

Posted by Karthikanbarasan under VB.NET category on | Points: 40 | Views : 4309
Public Shared Function fnOpenFile() As String
Dim filetoopen As New OpenFileDialog
filetoopen.Filter = "Word Document | *.doc"
If filetoopen.ShowDialog() = DialogResult.OK Then
Return filetoopen.FileName
Return ""
End If
End Function

Comments or Responses

Login to post response