Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted

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

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...