| 发表于:2007-12-25 12:54:232楼 得分:0 |
在子窗体中设置一个对主窗体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 = "....."; } } | | |
|