|
-
Mar 23rd, 2014, 03:22 PM
#1
Thread Starter
Lively Member
Launch other application in VB.Net and get object of instance
Say I have two or more applications in Visual Studio. They are both Windows forms. Application1 has a listbox. Is it possible, without referencing the other projects, to launch the other applications from the location where their executable file is, and get some form of reference or object of that instance, so from Application1 I can close it, or perform actions on it such as maximize/minimize? Thanks.
-
Mar 23rd, 2014, 05:36 PM
#2
Fanatic Member
Re: Launch other application in VB.Net and get object of instance
Hi, you can easy enough start another program provided you know the path with
Code:
Process.Start("pathtotheprogramexe")
if you want to be able to close it then something like
Code:
Dim gg As New Process
gg.StartInfo.FileName = "path to file exe"
gg.Start()
gg.WaitForExit()
gg.Close()
that will open it then close it right away but shows the point. as for min and max the window i dont really know but looking up the window handles may be of help
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|