C# “Lock” an overlay form to the position of another window
问题 I am making an add on for a game, but I want it to reside as an overlay to the game's client area of the window. Basically when I start the add on, i want it to show on top of the game. The catch is if you minimize or move the window, I want the the form to stick with it. Anyone know of anything that can do the trick without having to hook directdraw? Thanks. 回答1: Here is a simple way to do this. First, you'll need this line in your form's using statements: using System.Runtime