c# 托管
//两个窗体间的托管
//窗体1 mainForm
public delegate void NotifyHandle();
public event NotifyHandle SendToParent;
//调用时用,即在此窗口调用SendToParent()事件时就会执行mainform窗口的showNotify方法。
SendToParent();
//窗体2
mainform = new mainForm();
//绑定
mainform.SendToParent += new mainForm.NotifyHandle(ShowNotify);
void ShowNotify()
{
//notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(1);
}