Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]容器内控件的调用问题

1楼
涛声依旧5666 发表于:2011/8/2 0:30:00

在窗口1中加入panel1,在panel1中再增加button1,

现在想引用button1,

为什么 e.form.controls("panel1").controls("button1")不能成功引用button1,

反而    e.form.controls("button1")成功引用button1

求教!!!!

2楼
blackzhu 发表于:2011/8/2 8:33:00
看看窗口控件描述,第二个对的!
3楼
擎天柱 发表于:2011/8/2 8:38:00

e.form.controls("panel1").controls("button1"),有这样引用吗?控件的控件?貌似我在学习过程还没这样引用过,应该是直接通过窗体来引用吧?怎么会通过窗体中控件来引用另一控件?将控件放置于容器内,它的top,left等就跟着容器走了。

4楼
涛声依旧5666 发表于:2011/8/2 9:56:00

但是从添加控件的角度看,

panel1是添加到窗口1中的:e.Form.AddControl("panel1")

button1是添加到panel1中的:e.Form.Controls("Panel1").AddControl("button1")

所以貌似button1是在panel1的controls集合中的,不知是否应该这样理解????

 

共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02734 s, 2 queries.