Search code examples
c#.netwinforms-interop

New button on top corner of any Windows App C#


Somebody know how to add a button on top right corner of any windows app loaded?, and manage a controller to interacting with them. Really what I want is a method to set the property "Always on top" of any form. I appreciate any help to do this posible... :) (my programing language is c#)


Solution

  • It is possible to do so but prepare yourself to get dirty. Really dirty.

    See this CodeProject article: Add Your Control On Top Another Application. Basically that guy is drawing a kind of custom control into another app's title bar.

    In addition to this, this article about global system hooks might get handy for you as well.