Is similar to that of multiple page form, modify the data in a page, click on other page, other pages data real-time update, data may be a linkage between several pages
CodePudding user response:
Each page have a delegate, in mutual use save eventCodePudding user response:
In event subscription way, simple and directCodePudding user response:
Write a function, switch the TAB when event binding functionCodePudding user response:
Entrust can useCodePudding user response:
Define a Action, and then the corresponding need, is under processingCodePudding user response:
Public ActionChangeStr;
Private void Form3_Load (object sender, EventArgs e)
{
ChangeStr=new Action(LoadMsg);
}
Private void textBox1_TextChanged (object sender, EventArgs e)
{
ChangeStr (textBox1. Text);
}
Private void LoadMsg (string obj)
{
Label1. Text=obj;
Label2. Text=obj;
}
CodePudding user response:
Event subscription wayhttps://www.cnblogs.com/lishuyi/p/10765846.html