I have a small stand alone application that is fired when a user adds a document to our database. I want to make it so that the application always sits on top of any other window/program that the user has open on their computer and ideally, the user cannot click outside of the application until they fill in the info on the sheet and click ok, or cancel. So in a nutshell, I want it to lock up the computer until the user deals with the window.
I have tried using SetForegroundWindow( HWND ) and this pops it to the top, but can easily be pushed to the back again with a click outside the program.
Anyone have some code to accomplish this?