|
发表于 2020-8-27 07:45:01
|
显示全部楼层
在子窗体中设置一个对主窗体statusStrip的引用。
在创建子窗体时把载入statusStrip。
public class WParent
{
CreateSon()
{
WSon son = new WSon();
son.statusStrip = this.statusStrip;
}
}
public class WSon
{
private statusStrip;
private SomeMethod()
{
doSomething();
this.statusStrip.Text = ".....";
}
} |
|