2
我手动添加通知图标到基于表单的应用程序的任务栏使用c#。该菜单已添加好,但是当我右键单击该图标时,该列表将显示在任务栏下方作为默认值。如何让它出现在您通常所期望的位置?菜单项出现在任务栏上而不是上面
NotifyIcon notfiyIcon = new NotifyIcon();
ContextMenu contextMenu = new ContextMenu();
MenuItem menuItem = new MenuItem();
menuItem.Text = "Exit";
menuItem.Click += new System.EventHandler(this.btnLogOut_Click);
contextMenu.MenuItems.Add(menuItem);
contextMenu.MenuItems.Add("hello");
notfiyIcon.ContextMenu = contextMenu;
notfiyIcon.Text = "Property Sales";
Icon icon = new Icon("icon.ico");
notfiyIcon.Icon = icon;
notfiyIcon.Visible = true;
这是我想它会出现什么。
你是什么意思_下面的任务栏_?你可以张贴截图吗?另外,什么操作系统? – gideon 2011-04-07 17:53:40
我添加了图标 – JohnB 2011-04-07 17:58:56