07 menu and exercises with small icons in the lower right corner, and 07 menu icons
Private void exit ToolStripMenuItem_Click (object sender, EventArgs e) // exit menu method {// this. close (); Application. exit (); // we recommend that you use this close statement} private void timerjavastick (object sender, EventArgs e) // time method {toolStripStatusLabel1.Text = DateTime. now. toString ();} private void Form1_Resize (object sender, EventArgs e) // The effect generated after the maximum and minimum window changes {if (this. windowState = FormWindowState. minimized) {policyicon1.visible = true; this. visible = false;} else {policyicon1.visible = false; this. visible = true;} private void Form1_Load (object sender, EventArgs e) {// if (this. windowState = FormWindowState. minimized) // {// ShowInTaskbar = false; //} // private void policyicon=mousedoubleclick (object sender, MouseEventArgs e) // {// this. visible = true; // this. windowState = FormWindowState. normal; //} private void policyicon1_doubleclick (object sender, EventArgs e) // set the small icon in the lower right corner {this. visible = true; this. windowState = FormWindowState. normal;} private void display ToolStripMenuItem_Click (object sender, EventArgs e) // double-click the icon in the lower right corner to display the program window {policyicon#doubleclick (sender, e );}