0

How do i get a process main window position. i have searched all around the internet but i cant find a solution. Here is my code:

        Process[] processCollection = Process.GetProcesses();
        foreach (Process p in processCollection)
        {
           // Get window position from "p"
        }
Axell
  • 3
  • 1
  • 1
    Does this answer your question? [How to get main window handle from process id?](https://stackoverflow.com/questions/1888863/how-to-get-main-window-handle-from-process-id) – Palle Due Feb 22 '22 at 12:57
  • The first step is to find the "main" window, which the duplicate shows. – Palle Due Feb 22 '22 at 12:58

1 Answers1

0

Based on my unserstanding, you want to retrieve the size and position of a window in another process. If I have misunderstood you, please feel free to tell me, thanks.

check this :

sample