How to open target file from form

Hello,

I have A program which contains a combo box that has a value which is a link to a local file. I want the user to be able to open this file when they click a button.

Previously I have done this in VBA using Application.FollowHyperlink Me.txtAuth. Is there a way to do this in VB.NET?

The target file is a .TIF I've read a bit on using a file browser to complete this but I want it to open the file selected on the form, rather than browsing for it.

Thanks in Advance!
c9k9hAsked:
Who is Participating?
 
c9k9hConnect With a Mentor Author Commented:
Nevermind, Got it


 Dim myprocess As New Process
        myprocess.StartInfo.FileName = Me.cboForm.SelectedValue
        myprocess.Start()
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
...or simply:

    Process.Start(Me.cboForm.SelectedValue)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.