Outils pour utilisateurs

Outils du site


lang:csharp:ihm:form:form

Utiliser l'icône de l'application pour les form

Dans la fonction InitializeComponent, ajoutez (ou remplacez) la ligne :

this.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath);

c# - Set same icon for all my Forms - Stack Overflow Archive du 09/10/2008 le 29/04/2020

La taille de l'image prise par défaut est 32x32px et c'est non modifiable.

lang/csharp/ihm/form/form.txt · Dernière modification : 2020/04/29 20:44 de root