I have a DataGrid that reads from a table in a DB the name and file name (full address) of certain files. What I want is when the user double clicks the file it opens the PDF reader and loads the file. How would I go about doing this?
EDIT: This is my current code:
Dim row2 As String = DataGridView1.Rows(e.RowIndex).Cells(3).Value
Process.Start("Acrobat.exe", row2)
VS throws the exception that file cannot be found. I checked the variable and its giving me the correct data. I also tried putting row2 between the quotation marks and no go either. It just doesn't find the file.
WORKING UPDATE: Alright it was a very simple mistake
Process.Start("AcroRd32.exe", row2)
Row2 grabs the data from a cell I have in the datagrid that has the file location.