windows常用控件
---------------------------------------------------------------------------------------------
任务栏气泡消息notifyIcon控件
1.notifyIcon2.ShowBalloonTip(10000, "hello", "world", ToolTipIcon.Info);
2.contextMenuStrip1,好像还需要放一个这个控件
3.notifyicon要指定他的ico属性,这样才会弹出消息
---------------------------------
鼠标右健显示菜单
1.contextMenuStrip1,控件上要找到mouseup的方法
  private void Form1_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
              //  ContextMenu menu = new ContextMenu();
                //menu.Show(this, new Point(e.X,e.Y+_lvHosts.Top));
                contextMenuStrip1.Show(this, new Point(e.X, e.Y + this.Top));
            }
        }
----------------------------------------------------------------------
不显示窗体
   //不在任务栏上显示
            this.ShowInTaskbar = false;
--------------------------------
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号