If you paste this code to your Form will have a new form property which when set to true will keep you window (form) above all other open windows even when it does not have the focus.
One issue with it is that it might work or might not work in the IDE. I’ve seen both cases. It also does not work for MDI children.
Pay attention to the commented form resize code. If you window can be minimized it will lose the setting so you will need to uncomment the resize code to make sure that it is restored properly. Happy coding.
Attachments
File | Uploaded | Size |
---|---|---|
989-20190827-094446-AlwaysOnTop.txt | 8/27/2019 9:44:46 AM | 850 |