If, like me you use LinkLabels to provide links to websites in yout VB.Net applications, or you would just like to include links to documents etc. You can use this code to force the file specified to be opened by the default file handler.

Imports System.Diagnostics.Process
Public Function OpenDocument(ByVal strName As String) As Boolean
Try
Start(strName)
Return True
Catch
Return False
End Try
End Function



Page 1 of 11