C#完成體系托盤告訴的辦法。本站提示廣大學習愛好者:(C#完成體系托盤告訴的辦法)文章只能為提供參考,不一定能成為您想要的結果。以下是C#完成體系托盤告訴的辦法正文
本文實例講述了C#完成體系托盤告訴的辦法。分享給年夜家供年夜家參考。詳細完成辦法以下:
namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { this.Activate(); } private void Form1_Resize(object sender, EventArgs e) { if (FormWindowState.Minimized == WindowState) { this.notifyIcon1.Visible = true; this.Visible = false; } } private void openToolStripMenuItem_Click(object sender, EventArgs e) { this.notifyIcon1.Visible = false; this.Show(); WindowState = FormWindowState.Normal; } private void closeToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); } private void Form1_Load(object sender, EventArgs e) { } } }
願望本文所述對年夜家的C#法式設計有所贊助。