AfterOpenProject项目的
AddHandler nfi.DoubleClick, AddressOf Icon_DoubleClick '为通知区域图标添加双击事件
Dim tsmi1 As new System.Windows.Forms.ToolStripMenuItem("菜单一",GetImage(projectpath & "\BrowseMode.ico")) '定义一个菜单选项(带图标)
AddHandler tsmi1 .Click, AddressOf Menu1_Click '为这个菜单选项添加点击事件
'Dim tsmi2 As new System.Windows.Forms.ToolStripMenuItem("菜单二") '定义一个菜单选项
'AddHandler tsmi2 .Click, AddressOf Menu1_Click '为这个菜单选项添加点击事件
'Dim zcd1 As new System.Windows.Forms.ToolStripMenuItem("子菜单1") '定义一个菜单选项
'Dim zcd2 As new System.Windows.Forms.ToolStripMenuItem("子菜单2") '定义一个菜单选项
'tsmi2.DropDownItems.Add(zcd1) '把 "子菜单1" 添加为 "菜单二" 的子菜单
'tsmi2.DropDownItems.Add(zcd2) '把 "子菜单2" 添加为 "菜单二" 的子菜单
'Dim tsmi3 As new System.Windows.Forms.ToolStripMenuItem("菜单三") '定义一个菜单选项
'AddHandler tsmi3 .Click, AddressOf Menu1_Click '为这个菜单选项添加点击事件
'Dim ztsmi As new System.Windows.Forms.ToolStripMenuItem("一级子菜单1") '定义一个菜单选项
'AddHandler ztsmi .Click, AddressOf Menu1_Click '为这个菜单选项添加点击事件
'Dim ejzcd As new System.Windows.Forms.ToolStripMenuItem("二级子菜单1") '定义一个菜单选项
'ztsmi.DropDownItems.Add(ejzcd ) '把"二级子菜单1" 添加为 "一级子菜单1" 的子菜单
'tsmi3.DropDownItems.Add(ztsmi) '把 "一级子菜单1" 添加为 "菜单三" 的子菜单
cms.Items.Add(tsmi1) '为全局变量CMS 也就是右键菜单添加 "菜单一"
'cms.Items.Add(tsmi2) '为全局变量CMS 也就是右键菜单添加 "菜单二"
'cms.Items.Add(tsmi3) '为全局变量CMS 也就是右键菜单添加 "菜单三"
nfi.ContextMenuStrip = cms
nfi.Text = "我是中电致远QQSever" '鼠标移上去显示的文本
nfi.Icon = new Icon(ProjectPath & "\001.ico") '图标地址
nfi.Visible = True '设置为显示
''
'Forms("QQServer").Open()
QQServer.ServerIp = "192.168.40.102" '指定IP地址
QQServer.ServerPort ="52177" '指定端口
QQServer.HeartbeatInterval ="30" '指定心跳时间
QQServer.HeartbeatTimeout ="100" '指定心跳超时时间
QQServer.Start() '启动QQServer
nfi.Ballo '需要弹出的提示
nfi.ShowBalloonTip(1000) '提示显示的事件(毫秒)
baseMainform.visible=False