我的意思是子窗口无访问父窗口的:
比如在Form1的Button1.Clicked事件中生成了Form2
{
......
Form2.Show(this);
//
}再在Form2.Button1.Clicked事件中访问Form1
引用上述代码传过来的"this"?
比如在Form1的Button1.Clicked事件中生成了Form2
{
......
Form2.Show(this);
//
}再在Form2.Button1.Clicked事件中访问Form1
引用上述代码传过来的"this"?
this.Owner,就是你的父窗口对象。