Is it possible for a .NET application to grab all the window handles currently open, and move/resize these windows?
I'd pretty sure its possible using P/Invoke, but I was wondering if there were some managed code wrappers for this functionality.
Is it possible for a .NET application to grab all the window handles currently open, and move/resize these windows?
I'd pretty sure its possible using P/Invoke, but I was wondering if there were some managed code wrappers for this functionality.
Yes, it is possible using the Windows API.
This post has information on how to get all window handles from active processes: http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=35545
And then you can move the window using the Windows API: http://www.devasp.net/net/articles/display/689.html
Here are the parameters for the MoveWindow function:
(http://windows-programming.suite101.com/article.cfm/client_area_size_with_movewindow)