该怎么做呢?

解决方案 »

  1.   

    Me.ShowInTaskbar = False
     Me.NotifyIcon1.ContextMenuStrip = Me.ContextMenuStrip1
            Me.NotifyIcon1.Icon = CType(resources.GetObject("NotifyIcon1.Icon"), System.Drawing.Icon)
            Me.NotifyIcon1.Text = "NotifyIcon1"
            Me.NotifyIcon1.Visible = True
            '
            'ContextMenuStrip1
            '
            Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.显示ToolStripMenuItem, Me.退出ToolStripMenuItem})
            Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
            Me.ContextMenuStrip1.Size = New System.Drawing.Size(95, 48)