Solved

VB.Net Menu Application to Launch Executables

Posted on 2012-04-06
1
441 Views
Last Modified: 2012-04-09
I have written multiple vb.net applications and published them as executables.  I would like to create one vb.net Menu app that will launch thes executables with the click of a menu option.

What is the best approach?  If my idea is do-able, will I need to build a script to install all the the menu and all executable apps on each desktop when deployed.  Is there a better solution than vb.net?

pfc
0
Comment
Question by:pfc42355
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 37817995
I'm sure you know the "menu app" will be a Forms app. You have a couple of options for starting the others.

Since the other applications are .NET applications, you can add references to them just the same as if they were .DLL library files. You would call Program.Main (assuming you didn't change the name of the default "Program" class), and you would pass that function any "command line" arguments you might have passed had you started the apps from a command prompt. This means that the other apps will be loaded into the same AppDomain as your application.

Since the other applicatons are also "standalone" applications (in that you can execute them directly from a command prompt), you could also start the applications as separate processes from your main menu application. They would not share the same AppDomain via this method. For this method, you would need to look into the Process class. As a quick example, you could do something like this:

Imports System.Diagnostics

...

Dim p As New Process()

p.Start("C:\path\to\some\executable.exe", "some parameter values if needed, otherwise leave out or pass empty string")

' p.WaitForExit()  ' If you need to wait until the app has completed before continuing

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question