各位网友帮我看看,使用NotifyIcon组件,为什么没在通知区域显示图标? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace NotifyIconExample { public partial class Form1 : Form { private bool isExit = false; public Form1() { InitializeComponent(); notifyIcon1.ContextMenuStrip = this.contextMenuStrip1; notifyIcon1.Visible = true; notifyIcon1.BalloonTipText = "aaaaaaaa"; notifyIcon1.DoubleClick+=new System.EventHandler(this.notifyIcon1_DoubleClick); this.ShowInTaskbar=false; this.WindowState=FormWindowState.Minimized; this.SetDesktopLocation( Screen.PrimaryScreen.WorkingArea.Width-this.Width-20, Screen.PrimaryScreen.WorkingArea.Height-this.Height-50); }