-
In the project properties > Application > Icon and Manifest > browse for a *.ico file and add it there.
-
In the constructor or
_Loadevent of a Form, simply add:this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);
In the project properties > Application > Icon and Manifest > browse for a *.ico file and add it there.
In the constructor or _Load event of a Form, simply add:
this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);