1:新建winfrom 窗体应用程序 2:拖入contextMenuStrip.notifyIcon 2个控件 3:如图 4:code: 注意:复制控件事件要注册 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System
2个窗体 Parent,Children 代码: Parent public partial class Parent : Form { public string parentValue = "parentValue"; Children sw; public Children cc; public Parent() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {