Minimiser une application en System Tray Icon

A partir de la toolbox, ajouter à votre projet un notify icon

Lors de l'event Rezise de votre Form :

if (WindowState == FormWindowState.Minimized) Hide();

Lors du double click sur notifyIcon1 :

Show();
WindowState = FormWindowState.Normal;

Libre à vous par la suite d'y ajouter un ContextMenuStrip, à partir des propriétés de votre notifyIcon.

Posted on 08/08/2007 05:20:00 by Togis

Permalink | Commentaires (0) | Post RSSRSS comment feed |

Categories: General | Tips | WinForm

Tags:

Actuellement noté 1.0 par 1 personne(s)

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Billets liés

Ajouter un commentaire


(Affichera votre icône Gravatar)  

  Country flag





Live preview

novembre 21. 2008 18:51