vb.net Allowing some programs to open

vb321

Newcomer
Joined
Jul 28, 2010
Messages
1
i am currently using vb.net. I want to do a program A. When program A is open, it only allows another random program to open like IE or Notepad. But when the user open another program, it will prompt the user to close the program before proceeding. So it only allow the program which open right after the Program A. I am a beginner so please me the exact coding and explain.
 
Exact coding is difficult without knowing precisely what you are doing. This sounds like it might be an advanced project.

Some hints.

1. Look up how to use Process.Start() this will allow you to run/monitor an external program.

2. When the user requests to start the new process, you are going to want to monitor/check the other running Processes, and see if it is running or not. By checking the Process.HasExited property you can see if a process has stopped.

3. I think there might be easier ways to do what you want.

4. Google is your friend

5. My post here shows one way to do something similar.

Also you should have a try at doing this yourself. If you have problems come back and post specifics and the Pros here will do their best to solve it.



Good Luck
MTS
 
Back
Top