| 发表于:2007-08-10 13:46:531楼 得分:20 |
把控件pnlcalc加入到父容器中,就可以了。 ...controls.add pnlcalc 例如我的一段代码,大体功能差不多吧 '移出原有的 if not me.mydg is nothing then with me.mydg me.controls.remove(me.mydg) me.mydg.dock = dockstyle.none me.parentform.controls.add(me.mydg) removeevent(mydg) end with end if '加入新来的 if not value is nothing then with value me.controls.add(value) '改变索引让它能否在pic上,而不是全部; me.controls.setchildindex(value, 0) .dock = dockstyle.fill addevent(value) end with end if me.mydg = value ================================================================== 博客空间:http://blog.csdn.net/lovingkiss 资源下载:http://download.csdn.net/user/lovingkiss 优惠接单开发,组件控件定制开发,成品源代码批发 联系方式:q64180940 全天在线 ================================================================== | | |
|