Not sure it works, but you can try that :
IntPtr handle = Process.GetCurrentProcess().MainWindowHandle;
More Related Contents:
- Input string not in a correct format [closed]
- How can I get the application’s path in a .NET console application?
- How can I update the current line in a C# Windows Console App?
- How do you add a timer to a C# console application
- Redirect console output to textbox in separate program
- Show Console in Windows Application?
- Difference between Console.Read() and Console.ReadLine()?
- How to detect if Console.In (stdin) has been redirected?
- No output to console from a WPF application?
- How To: Best way to draw table in console app (C#)
- Custom text color in C# console application?
- Read from location on console C#
- Console application closes immediately after opening in visual studio
- How can I read user input from the console?
- How do I trap Ctrl+C (SIGINT) in a C# console app?
- Mirroring console output to a file
- C# – Realtime console output redirection
- Command to close an application of console?
- Redirect console.writeline from windows application to a string
- Having the output of a console application in Visual Studio instead of the console
- Create HTTP post request and receive response using C# console application
- C# Process.MainWindowHandle always returns IntPtr Zero
- How to interrupt Console.ReadLine
- Display a Image in a console application
- Display an Image in a console application
- reading two integers in one line using C#
- Converting Color to ConsoleColor?
- How can I determine whether Console.Out has been redirected to a file?
- WPF window from a Console project?
- C# : Redirect console application output : How to flush the output?