Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set same icon for all my Forms

Is there any way to set the same icon to all my forms without having to change one by one? Something like when you setup GlobalAssemblyInfo for all your projects inside your solution.

like image 609
Tute Avatar asked Oct 09 '08 20:10

Tute


1 Answers

  1. In the project properties > Application > Icon and Manifest > browse for a *.ico file and add it there.

  2. In the constructor or _Load event of a Form, simply add:

    this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); 
like image 149
Josua Avatar answered Sep 21 '22 13:09

Josua