Customizing the title bar area of a console application Customizing the title bar area of a console application windows windows

Customizing the title bar area of a console application


Use the Console.Title property

Check out this link for an example Console.Title Property


That's not easy to do. The console window is actually handled by a separate process, conhost.exe. You'd need to persuade that process to change its behaviour which would involve gross hacks.

You can obtain the window handle readily enough and change basic properties of the window, and hope that conhost.exe doesn't change them back. But custom painting of the caption bar would involve injecting code into conhost.exe.


Use the SetConsoleTitle API. With P/Invoke I would guess.