- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
vbtree(vbtree)
vbtree(vbtree)
1, as the tree browser controls add nodes and sub nodes
Use the ADD method to add a new node to the tree browser NODES collection, you can declare it is and the existing node are connected. Usually use the ADD method, the syntax is as follows:
Nodes.Add (relative, [relationship][, key][, text][, image][, selectedimage])
The importance of each parameter are as follows:
The relationship parameter is another node connected by the node parameters and the new node;
The relationship parameter may be the following:
Tvwlast--1; behind the node in all the other named relative in the same level.
TvwNext--2; the node is placed behind relative named node
TvwPrevius--3; in front of the node in the name in the relative
TvwChild--4; the node is a node named relative in the child node
The following is an example of:
Dimnode1, node2, node3, node4asNode
SetNode1=TreeView1.Nodes.Add
TreeView1.Nodes (1).Text= node1
TreeView1.Nodes (1).Key= node1
Setnode2=treeview.nodes.add (node1 tvwChild, node2)
TreeView1.Nodes (2).Text= node2
TreeView1.Nodes (2).Key= node2
In order to insert nodes.
2, insert images for node
Treeview1.node (3).Image= leaf
Note that we generally specify the image from Imagelist
3, click on the processing nodes, how can we know which one is the node tree browser click? You can use the NodeClick event:
Publicsubtreeview1_nodeclick (byvalnodeascomctllib.node)
Text1.text= youclick node.text
Endsub
*********************************************************
2, TreeView, and select one of the specified node
Regarding
(PrivateSubCommand1_Click)
DimnodeYAsNode
ForEachnodeYInTreeView1.Nodes
IfCStr (Trim (nodeY.Text)) = FF Then
NodeY.Selected=True
TreeView1.SetFocus
ExitFor
EndIf
Next
EndSub
(PrivateSubForm_Load)
Rs1.CommandType=adCmdText
Rs1.RecordSource= selectdistinctbiao, zufromtestorderbyzu
Rs1.Refresh
DimRsAsADODB.Recordset
SetRs=Rs1.Recordset
SetnodX=TreeView1.Nodes.Add (,, R, the report)
I=0
DimTempStringAsString
DimTempKeyAsLong
DoUntilRs.EOFOrRs.BOF
IfTemp
您可能关注的文档
- rj45接头网线打线介绍(Introduction of RJ45 joint cable laying).doc
- rm-588固件华丽、极速、稳定、省电、贝拉导航,自用完美版(Rm-588 firmware, gorgeous, speed, stability, power saving, Bella navigation, for personal use, perfect edition).doc
- robots.txt写法完全攻略(机器人。txt写法完全攻略).doc
- robots.txt写法大全和robots.txt语法的作用(超详细)(Robots.txt writing Daquan and the role of robots.txt Grammar (super detailed)).doc
- rom刷机原理及rom制作技术初探(The principle of ROM brush and the making technology of ROM).doc
- routeros2.9.27配置hotspot(实现web认证(routeros2.9.27配置热点(实现Web认证).doc
- qq空间免费主题插件代码汇总(QQ space free theme plug-in code summary).doc
- rp70 吉他效果器简捷实用测评(Rp70 guitar player simple and practical evaluation).doc
- rs485(rs485).doc
- rssi告警(rssi告警).doc
最近下载
- 统编版高中历史选择性必修1第六单元 基层治理与社会保障 综合检测试卷(含答案解析).docx VIP
- 公务员管理有关业务流程图.pdf VIP
- GB50045-95高层民用建筑设计防火规范97年版.pdf VIP
- 《建筑结构平法识图》课程标准.doc VIP
- 《税法》课程思政说课.pdf VIP
- 2025款比亚迪秦PLUS DM-i智驾版_用户手册驾驶指南车主车辆说明书电子版.pdf VIP
- 易飞ERP操作手册.pdf VIP
- 统编版高中历史选择性必修1第五单元 货币与赋税制度 综合检测试卷(含答案解析).docx VIP
- 网络安全等级保护(等保2.0)3级建设内容设计方案 .pdf VIP
- 不动产登记代理人《不动产权利理论与方法》题库(含答案).docx VIP
文档评论(0)