Outils pour utilisateurs

Outils du site


lang:csharp:ihm:form

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
lang:csharp:ihm:form [2016/08/29 12:35] – [Avoir deux PictureBox transparentes se recouvrant] rootlang:csharp:ihm:form [2020/04/27 08:17] (Version actuelle) – Conversion de <note> vers <WRAP> root
Ligne 1: Ligne 1:
 +[[lang:csharp:ihm:form:bugs|Bugs]]
 +
 +[[lang:csharp:ihm:form:touches|Gestion des touches]]
 +
 +[[lang:csharp:ihm:form:textbox|TextBox]]
 +
 +[[lang:csharp:ihm:form:tablelayoutpanel|TableLayoutPanel]]
 +
 +[[lang:csharp:ihm:form:form|Form]]
 +
 +[[lang:csharp:ihm:form:propertygrid|PropertyGrid]]
 +
 +[[lang:csharp:ihm:form:datagridview|DataGridView]]
 +
 +[[lang:csharp:ihm:form:progressbar|ProgressBar]]
 +
 +[[lang:csharp:ihm:form:tooltip|ToolTip]]
 +
 =====Récupérer tous les enfants en fonction de leur type===== =====Récupérer tous les enfants en fonction de leur type=====
 ====Juste les enfants directs==== ====Juste les enfants directs====
Ligne 23: Ligne 41:
 </code> </code>
  
-[[http://stackoverflow.com/questions/4630391/get-all-controls-of-a-specific-type|Source]]{{:lang:csharp:ihm:form:c_-_get_all_controls_of_a_specific_type_-_stack_overflow.maff|Archive}}+[[https://stackoverflow.com/questions/4630391/get-all-controls-of-a-specific-type|c# - Get all controls of a specific type - Stack Overflow]] {{ :lang:csharp:ihm:form:c_-_get_all_controls_of_a_specific_type_-_stack_overflow_2020-04-27_8_06_13_am_.html |Archive du 07/01/2011 le 27/04/2020}}
  
 =====Ajout d'un composant===== =====Ajout d'un composant=====
Ligne 39: Ligne 57:
 Pour que trois images soient transparentes, il faut un composant enfant, un composant parent et un composant "grand-parent". Pour que trois images soient transparentes, il faut un composant enfant, un composant parent et un composant "grand-parent".
  
 +[[https://stackoverflow.com/questions/19910172/how-to-make-picturebox-transparent|c# - How to make picturebox transparent_ - Stack Overflow]] {{ :lang:csharp:ihm:form:c_-_how_to_make_picturebox_transparent_-_stack_overflow_2020-04-27_8_06_32_am_.html |Archive du 11/11/2013 le 27/04/2020}}
 +
 +=====Réduire le scintillement des UserControl d'une fenêtre =====
 +Mettre dans le formulaire (et pas dans les ''UserControl'') :
 +<code csharp>
 +protected override CreateParams CreateParams
 +{
 +    get
 +    {
 +        CreateParams cp = base.CreateParams;
 +        cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
 +        return cp;
 +    }
 +}
 +</code>
 +
 +<WRAP center round important 60%>
 +Cettte méthode réduit les scintillements pour les ''UserControl'' mais peut entraîner d'autres scintillements à la place. A utiliser avec précaution.
 +</WRAP>
 +
 +[[https://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls|c# - How to fix the flickering in User controls - Stack Overflow]] {{ :lang:csharp:ihm:form:c_-_how_to_fix_the_flickering_in_user_controls_-_stack_overflow_2020-04-27_8_06_50_am_.html |Archive du 10/04/2010 le 27/04/2020}}
 +
 +=====Permettre à un Panel de faire défiler l'ascenseur avec la molette=====
 +Le panel doit avoir le focus.
 +<code csharp>
 +private void panel1_MouseEnter(object sender, EventArgs e)
 +{
 +    panel1.Focus();
 +}
 +</code>
 +
 +[[https://stackoverflow.com/questions/1600664/how-can-i-scroll-my-panel-using-my-mousewheel|c# - How can I scroll my panel using my mousewheel_ - Stack Overflow]] {{ :lang:csharp:ihm:form:c_-_how_can_i_scroll_my_panel_using_my_mousewheel_-_stack_overflow_2020-04-27_8_07_02_am_.html |Archive du 21/10/2009 le 27/04/2020}}
lang/csharp/ihm/form.1472466942.txt.gz · Dernière modification : 2016/08/29 12:35 de root