File open dialog box in VB.net with particular format to open

Karthikanbarasan
Posted by Karthikanbarasan under VB.NET category on | Points: 40 | Views : 4120
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
Else
Return ""
End If
End Function

Comments or Responses

Login to post response