Assuming you're using WinForms, you could try handling the GotFocus and LostFocus events. Detecting whether a new program has been opened could cause issues, especially during startup, since you can't be sure your program is opened last, and Windows could be starting up a bunch of programs.
Is it also possible to stop it when I start up another programm ?
A particular program? Is it one that you have the source code for? You could always create a cmd file to start that particular program then create a shortcut to the cmd file and always start it from that. The cmd file could have a line to kill your program and another to start the requested program.
I have a scroling text that starts running at the bottom of my desktop when I start up my computer. I would like to know if it is possible to have it detect when any other program starts and have itself shutdown. Just curious if it can be done.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"