moving/resizing external application from c#

  • Thread starter Thread starter titan nyquist
  • Start date Start date
T

titan nyquist

How do I move or resize an external application from within c#? I can
launch an application no problem (via "Process), but I'm stuck on
controlling it...

~titan
 
You can always call the SetWindowPos API function through the P/Invoke
layer.

From the Process class, you can access the MainWindowHandle property to
get the handle for the window to pass to SetWindowPos.
 
Back
Top