I have a small windows application that we run on Windows XP. Once the application starts, it removes itself from the programs list using the App.TaskVisible = false code.

However, when we run this application in Windows7, this line of code does not work and the program is clearly seen in the programs list.

When the application runs, a windows form is shown to the users and they have to input some data. This is a required process in the company and we want users not to bypass this. We want to prevent lazy users from ending/closing the application through the task manager.

Does anyone know how we can do this for windows 7?