Solved

CALL EXE FILE FROM MAIN MENU

Posted on 2011-03-18
12
314 Views
Last Modified: 2012-05-11
Hi All,

I have several separated application.

I want to create a Main Menu application, where we could call those application above.

How could I do it ?

Thank you.
0
Comment
Question by:emi_sastra
  • 6
  • 6
12 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 35166377
you can use Process.Start(path to your .exe)
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166487
Hi emoreau,

There are severals things you should know and some questions about it.

1. Each of the application, include the main menu has login.
2. How could we arrange it like it is just one set application, not many.
3. How to avoid recall again the same application.

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166497
After login at he main menu application, I don't want the user to login again when call another child application.

Thank you.
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 35166588
have you created all other applications or are those packages you don't have control over?

is there any way to pass credentials when you start the other applications?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166609
I have all the control over those application.

What should I do to bypass the login and other information to child applications ?

Thank you.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 35167075
you should modify these applications to accept encrypted credentials passed by arguments. if no valid credentials are passed, then you popup the login form.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35167101
I have no idea about it.

How could I do it on parent app and child app?

Would you please provide sample code ?

The login info just UserId and Password.

Thank you.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 35167676
I don't have an example to pass credentials.

for a general idea of how to pass arguments, check http://www.emoreau.com/Entries/Articles/2008/11/Passing-arguments-to-an-application-startup.aspx
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35169759
I don't quite get it now.

In child app, where I trap the parameters ?

In parent app, how to call and pass the parameter to the child ?

In parent app, how to avoid the child app called / start again if the child app is running ?

Thank you.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 35170140
the demo application in my article is an example of a child application receiving parameters
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 35170141
to check if an app is running: http://www.dreamincode.net/code/snippet1541.htm
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35171131
Ok.

Thank you very much for your help.

0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB: Convert 2 dates to specific format 24 48
VB.NET 1 24
SqlServer no dupes 25 35
VB.net capture  result of a SQL query in variables 3 12
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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