By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Loading external program

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
"Aaron Bellante" <aaronATbellanteDOTorg> wrote in message
news:uF**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 20 '05 #2

P: n/a
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.
"Aaron Bellante" <aaronATbellanteDOTorg> wrote in message
news:uF**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.