I'm new to C# & got requirement like
need to change the default console application icon programmatically [also is it possible to change during compile time].
I tried with Project -> Properties -> Application -> Icon of my solution in Visual Studio & its working fine.
Also able to set Form icon with the following code
this.Icon = new System.Drawing.Icon(@"Icon.png");
but the thing is i need to change the icon via code.
Help me out.