Is it possible to change a console window's icon from .net?

.net, console, icons

Solution

If it is your own application's console window, then you can...

- Double-click on "Properties" under your console project in Solution Explorer

- Select the option "Icon and manifest"

- Add your icon in that panel.

(I'm assuming you are in a C# environment, but VB.NET should be similar)

If you are starting an external process... then you can make a "launcher" console project to which you can set your own icon the same way as above.

If you mean an externally owned console window that you don't have control over... then I think you do need win32/pinvoke call.

Problem

Is it possible to change a console window's icon from .net? Without using win32 calls.

Original source