编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛  
 
全能 ASP / PHP / ASP.NET 主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
发新话题
打印

如何用treeview做个树型菜单呀

如何用treeview做个树型菜单呀

如何用treeview做个树型菜单呀?那个treevieeitem 我一直找不到在哪里

TOP

我没明白你的意思.请说仔细点.
乌龟学堂http://www.51pb.com 承接各种软件开发、系统集成、网络搭建。 QQ:124030710

TOP

楼主的意思可能就是说

怎么用TREE控件!

树形控件可以找一些实例代码来做参考!!

偶的理解是TREE控件在这些控件中是比较复杂的一个!

TOP

我也想知道啊,谁能指导一下啊?

TOP

long ll_handle_1,ll_handle_2,ll_handle_3,ll_handle_4
TreeViewItem ltv_item_1,ltv_item_2,ltv_item_3,ltv_item_4


//在樹形中插入一個項目
 treeviewname.InsertItemSort ( handleparent, label, pictureindex )
ll_handle_1 = This.InsertItemsort(0,ls_province_no + ' ' +ls_province_nm , 1)

This.Getitem(ll_handle_1,ltv_item_1)
ltv_item_1.data = ls_province_no
//顯示第一張圖片
ltv_item_1.pictureindex = 1
//被選中時顯示第二張圖片
ltv_item_1.selectedpictureindex = 2
this.setitem(ll_handle_1,ltv_item_1)
第二個樹柄:
ll_handle_2 = this.insertitemsort(ll_handle_1,ls_county_no + ' ' + ls_county_nm,1)
this.getitem(ll_handle_2,ltv_item_2)
ltv_item_2.data = ls_county_no
ltv_item_2.pictureindex = 1
ltv_item_2.selectedpictureindex =2
this.setitem(ll_handle_2,ltv_item_2) .......以此類推。

TOP

发新话题