Is it possible to change a console window's icon from .net? Without using win32 calls.
To summarize right click on your project (not the solution) in Visual Studio and select properties. At the bottom of the "Application" tab there is a section for "Icon and manifest" where you can change the icon.
Keep Console Open With the Ctrl + F5 Shortcut in C# The best approach for keeping our console window open after the execution of code is to run it with the Ctrl + F5 shortcut of the Microsoft Visual Studio IDE.
If it is your own application's console window, then you can...
(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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With