以文本方式查看主题
- Foxtable(狐表) (http://foxtable.com/bbs/index.asp)
-- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2)
---- [求助]目录树图标设置 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=114455)
|
-- 作者:lszy
-- 发布时间:2018/2/6 16:09:00
-- [求助]目录树图标设置
此主题相关图片如下:目录树问题.png
请教: Dim tr As WinForm.TreeView tr =
Forms("窗口1").Controls("TreeView1") tr.Nodes(0).IconFile =
"C:\\Icons\\Clone.ico" 和 For Each nd As WinForm.TreeNode In tr.AllNodes tr.Nodes(0).ic Next
iconfile设置是要么都加,要么都不加。
论坛有人做到了http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=48066&skin=0,请教如何实现的?学习学习
|
-- 作者:有点甜
-- 发布时间:2018/2/6 17:49:00
--
Dim tr As WinForm.TreeView tr = Forms("窗口1").Controls("TreeView1") For Each nd As WinForm.TreeNode In tr.AllNodes If nd.Level = 0 Then nd.IconFile = "123.ico" ElseIf nd.level = 1 Then nd.IconFile = "abc.ico" End If Next
|