Last updated by at .

Programming - MikeSel

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
Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!