GIS在哪里

 

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);
        }

posted on 2009-04-16 14:53  寻找GIS  阅读(177)  评论(0编辑  收藏  举报

导航