Advertisement
D3NCE

ANIMATION IN WINFORMS – PART 5 – SYSTEM TRAY

Dec 22nd, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. Video URL: https://www.youtube.com/watch?v=6H_3WZ28cxc
  2.  
  3. Der Code der Form1.cs:
  4.  
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel;
  8. using System.Data;
  9. using System.Drawing;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. using System.Windows.Forms;
  14.  
  15. namespace AiWF14___System_Tray
  16. {
  17. public partial class Form1 : Form
  18. {
  19. public Form1()
  20. {
  21. InitializeComponent();
  22. }
  23.  
  24. private void zeigenToolStripMenuItem_Click(object sender, EventArgs e)
  25. {
  26. this.Show();
  27. }
  28.  
  29. private void beendenToolStripMenuItem_Click(object sender, EventArgs e)
  30. {
  31. Application.Exit();
  32. }
  33.  
  34. private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
  35. {
  36. this.Show();
  37. }
  38.  
  39. private void Form1_Move(object sender, EventArgs e)
  40. {
  41. if (this.WindowState == FormWindowState.Minimized)
  42. {
  43. this.Hide();
  44. }
  45. }
  46.  
  47. private void Form1_Load(object sender, EventArgs e)
  48. {
  49.  
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement