How can get my form to be on top of everything all the time?

后端 未结 5 1042
梦如初夏
梦如初夏 2021-01-21 03:46

I have these little cursor shaped forms that I need to be on Top of everything, all the time...
FormStyle is already fsStayOnTop
I use this cod

5条回答
  •  我在风中等你
    2021-01-21 04:25

    Quick, slightly hacky fix: Call this from an Timer, 10 times a second:

    BringWindowToTop(Handle)
    

    Just tried it and it works! Maybe you can find a way to make it less "brute force", but I'm not sure how.

提交回复
热议问题