Question Move File Explorer Position

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
Can you move the file explorer window with code? I can move other windows with the SetWindowPos function. But i dont see the file explorer window in the process list.
 
i dont see the file explorer window in the process list.
File Explorer opens all its windows in a single process by default. Use for example EnumDesktopWindows to get window handles. You also have to further inspect for example with GetWindowText to check window title.
 
I do see an explorer.exe in the process list and it has the same pid when i use process explorer to look at it. It also has the title File Explorer. But when i try to look at its position and size, its clearly the taskbar. So use EnumDesktopWindows instead of Process.GetProcesses?
 
Back
Top