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.
1 2 3 4 5 6 7 8 9 |
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 |