winform 如何执行接收的委托事件
标题可能描述不清:
public static void Show( string Title, Delegate method)
{
UUChatMsg MsgForm = new UUChatMsg();
TextInput t = new TextInput();
MsgForm.Controls.Add(t);
Button b = new Button ();
MsgForm.Controls.Add(b);
//测试直接执行委托 MsgForm.Invoke(method,"测试")
//如何做才能做到 当B点击的时候,执行委托method,委托参数是文本框t的值 ?
//
}