Search code examples
c#window-handles

C# get window handle after starting a process


Is there a way to get the window handle (IntPtr) for a window after its launched from a C# app with Process.Start()?


Solution

  • If it's the main window you're after, Process.MainWindowHandle will give you what you need.