Loading external program

  • Thread starter Thread starter Aaron Bellante
  • Start date Start date
A

Aaron Bellante

I can't find the syntax I need (I'm new to VB) to load an external program
from mine. Basically, I just want to load a PDF when I click on an image in
my program.

Any help would be great.
 
You'll can use use Process.Start

Here's an example.

Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.FileName = fullpathandfilename
Process.Start(psi)

Create a function for this Process Start and pass in the full path and
filename. In the Click event for your ImageControl, call the ProcessStart
function and give it the filename you want to load.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top