here's one for the books
-
Is it possible to track a form (that is not your app) and place a button on it for the end user to click on? So basically...say a dialog app starts up. My program (which will be running in the background) will see that this app starts....gets the dimensions of the app and places a button on top of the app as well and moves the button if the user moves the app around on the desktop. Is this possible? Thanks
Tom Wright tawright915@gmail.com
-
Is it possible to track a form (that is not your app) and place a button on it for the end user to click on? So basically...say a dialog app starts up. My program (which will be running in the background) will see that this app starts....gets the dimensions of the app and places a button on top of the app as well and moves the button if the user moves the app around on the desktop. Is this possible? Thanks
Tom Wright tawright915@gmail.com
It's possible if your code was written in unmanaged C++, but not VB.NET or C#. This is because the .NET Framework doesn't support the exports and static linking required to do something called "DLL injection". This would be required because your code would have to become part of a foreign process so it can respond to another applications Paint events so the button gets repainted when necessary and respond to the clicks on the button.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007