Resolved Application Focus
- How-to
- Rick Domogalik
- PowerBuilder
- Thursday, 26 March 2020 12:54 PM UTC
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?
Rick
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.