473,508 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading external program

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
2 977
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5180
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
17
2747
by: CES | last post by:
All, I was wondering if their is a way of loading an external script fill from within a script?? <script language="javascript" type="text/javascript"> function test(var){ <script...
1
3778
by: ozzy.osborn | last post by:
Hello All, I have been struggling with a cross browser solution to loading external javascript files on the fly. I have been successful using the following code in IE6: var newScr =...
0
823
by: John Wright | last post by:
I am trying to load external assemblies that are exe files. I need some help creating an appdomain and loading the assembly. I also want to execute a function on the external assembly to pass...
5
3227
by: RickN | last post by:
I want to creat a new application domain called 'mydomain' and then load an assembly named 'myassembly.dll' into the domain. The assembly is in the folder "C:\Mydata\assembly", which is not the...
2
5300
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
1347
by: wez03 | last post by:
Hi everyone.. I got a problem in loading an external txt into my dynamic text. It says that there are no error in my script but when I publish it, the only thing seen in the text field is...
20
4258
by: Nickolai Leschov | last post by:
Hello all, I am programming an embedded controller that has a 'C' library for using its system functions (I/O, timers, all the specific devices). The supplied library has .LIB and .H files. ...
6
8602
by: aaronkmar | last post by:
Trying to get a loading image to spin while the query is loading. I can get the data div to fade in, but I can't seem to figure out how to get the gif while the query is loading. I'm using two...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.