定义委托

 public delegate void sendmessagetochildforms(string s); //定义了一个参数是string ,无返回值的委托,名为 sendmessagetochildforms。

委托实例化

// 本质就是实例化了一个事件event
 public event sendmessagetochildforms smtcf_event;

定义具体执行的方法

public void toshowgetmessage(string s)
{
     this.lb_收到内容.text=s;
}

绑定方法

 parameter frm_child = new parameter();
            smtcf_event += frm_child.toshowgetmessage; //在一实例化的一个委托事件上绑定子窗体的具体方法
            frm_child.show();

触发委托

        if (smtcf_event != null) //判断委托事件是否为空,如果委托不为空才执行
        {
            smtcf_event.invoke("12212");// 可以省略invoke 简写为smtcf(this.textbox1.text.trim());
        }