I am new to C # and ran into a problem. I want to manipulate the window (resize, move) with which I dynamically created:
Process app = new Process(); app.StartInfo.FileName = "notepad.exe";
I understand that I can get the descriptor app.MainWindowHandle , but I can't get the form Control.FromHandle(app.MainWindowHandle) . Therefore, I cannot set a new location or size for this notebook.
Any idea on how I can manipulate the window? Thanks in advance!
source share