举个例子吧:
窗体1:
public class Form1:System.Windows.Forms
{
private int aa=0;
public int AA
{
get{return this.aa;}
set{this.aa=value;}
}
}
窗体2:
public class Form2:System.Windows.Forms
{
private Form1 ff;
public Form2(Form1 f)
{
this.ff=f;
}
public void showForm1AA()
{
int a=ff.AA;
MessageBox.Show(a);
}
}