摘要:
在用户控件中:.......publicdelegatevoidMessage_str(stringmessageText);publicpartialclassTEST2:UserControl{publiceventMessage_strMessage_Arrived;publicTEST2(){InitializeComponent();this.button1.Click+=newEventHandler(button1_Click);}voidbutton1_Click(objectsender,EventArgse){Message_Arrived(textBox1.Text);} 阅读全文