how could I send an application (think WM_ messages?) which is not my application (think: any 3rd party app) to a different screen on a multiscreen system? Is there a specific windows message code I can send to the window or process handle to do this?
how could I send an application (think WM_ messages?) which is not my application
Share
You’ll want to use P/Invoke and the MoveWindow function.
Edit: It handles multiple screens just fine.
MoveWindowsees your screens as one big display, and takes arguments accordingly. You can use the .Net Screen class to find the bounds of the screen you want, and then callMoveWindowto get the window where you want it.Also, in case you weren’t aware of it, there’s a good chance that your project is probably going to need the
FindWindowByCaptionfunction as well.