vb321 Posted July 28, 2010 Posted July 28, 2010 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. Quote
MTSkull Posted July 30, 2010 Posted July 30, 2010 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 Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.