假设窗体 A传值到B
窗体A:
类外:
public delegate void box(string m ,string k);
类内:
public event box mvalue;
private void button1_Click(object sender, EventArgs e)
{
mvalue("1", "a");
}
窗体B:
public B st1;
private void Form1_Load(object sender, EventArgs e)
{
st1 = new B();
st1.st += new site1(st1_st);
}