Bonjour à tous,
J'ai une fenêtre qui, lorsque je la réduit, l'onglet dans la barre des tache doit disparaitre et lorsque je clique sur l'icone ,qui se trouve dans la icon notification bar ( ou il y a l'heure), la fentre doit reaparaitre .
L'onglet dans la barre des taches se remet mais je ne parvient pas a avoir le visuel de ma fenetre.
Code c# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 private void Main_Resize(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { this.Hide(); } //if (this.WindowState == FormWindowState.Normal) //{ //this.Show(); //} // else this.Show(); } private void notifyIcon_DoubleClick(object sender, EventArgs e) { //if (this.WindowState == FormWindowState.Minimized) //{ this.WindowState = FormWindowState.Normal; //this.notifyIcon.Visible = false; //this.Show(); //this.Activate(); this.Size = new Size(50, 50); //} this.Show(); this.Activate(); }
Partager