Hi Earl:
Boy, that was exactly what I needed to point me in the right direction. Had never run across "New Process" before. This is an amazing language. I truly believe you can do anything you can think of, and quite easily at that.
Again thanks for the help, greatly appreciated.
George Race
Race Consulting
Here is my final code to display a PDF File from a Form:
Private Sub TextBox1_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles TextBox1.Click
'Routine To Read PDF File From
VB 2005 Form
'NOTE: Start by making a TextBox on the form. This routine is started with the
'click event of the text box. Insert into the TextBox "Tag" parameter the full
'path and file name of the file to open.
'Let's setup a variables
Dim MyPDFFilePathAndName As String
'Get the File Path and File Name From the TextBox Tag Field
MyPDFFilePathAndName = Me.TextBox1.Tag.ToString
'Routine to open the PDF file and catch any errors.
Try
Dim process As New Process
With process
.StartInfo.FileName = MyPDFFilePathAndName
.Start()
End With
Catch ex As Exception
MsgBox("There is a problem!" & vbCrLf & ex.Message, 16, ("MY KIT AIRPLANE"))
Finally
Beep()
End Try
End Sub