| 发表于:2007-09-29 22:27:512楼 得分:0 |
这样的操作可以更新主窗体标题和状态栏显示 在主窗体的load事件中,使用事件 '加入状态栏更新代码 addhandler me.mdichildactivate, addressof me.mdichildactivated 下面是具体的事件 protected sub mdichildactivated(byval sender as object, byval e as system.eventargs) '20070926修改,不更新窗体标题,只更新状态栏,因为当子窗体最大化的时候,自动更新父窗体标题了。 if (me.activemdichild isnot nothing) then 'me.text = my.resources.strapplicationname & " - [" & me.activemdichild.text & "]" toolstripstatuslabelstatus.text = me.activemdichild.text else me.text = my.resources.strapplicationname toolstripstatuslabelstatus.text = "就绪..." end if end sub 这个是我以前写的,可以用的。 | | |
|