“在imagelist可以使用之前必须将它初始化”是什么意思?
我要如何初始化???
我要如何初始化???
解决方案 »
- vb打印问题
- vb 字符串比较
- 为何下面的Word VBA代码运行后其后的代码就不能运行了?
- 不在一个网关的局域网WinSock问题
- 怎么用VB显示*.MP3 和*.WAV文件的波形?高分别错过哦
- 这个帖子太强了,空军论坛
- 有关Mscomm的问题
- 各位高手,求救啊,VB生成可执行程序是提示“未找到方法或数据成员."
- 如何使用TCHART控件。。请大家讨论,,纵坐标的值以0.1为一格显示数据,怎么设置呀
- 写宏过程中遇到Function函数exit的问题;怎么让程序 不继续运行exit Function 后面的语句,直接退出功能函数?
- "DSN=..."是表示什么意思?
- 如何在控件数组中动态添加控件
Dim Node1 As Node
Dim Node2 As Node
Dim Node3 As Node
Dim i As Integer
Dim j As Integer
Dim k As Integer
' For some convenience...
TreeView1.HideSelection = False
TreeView1.LabelEdit = tvwManual
TreeView1.LineStyle = tvwRootLines
' Fill up the treeview...
For i = 1 To 2
Set Node1 = TreeView1.Nodes.Add(, , , "根目录" & i, 1)
For j = 1 To 3
Set Node2 = TreeView1.Nodes.Add(Node1.Index, tvwChild, , "子目录" & i & "-" & j, 2)
For k = 1 To 3
Set Node3 = TreeView1.Nodes.Add(Node2.Index, tvwChild, , "二级子目录" & (16 * (i - 1)) + (4 * (j - 1)) + k, 3)
Next
Next
Node1.Expanded = True
Next
' Set the labels with the first root Node's text.
' (a NodeClick event is not generated even though the first
' node in the TV is selected when the TV first appears).
End Sub(我真的不明白,里面有treeview,imagelist两个控件。)
可是我把人家的源代码就能编译通过,我把源代码复制过来,但不能通过编译。
它提示“在imagelist可以使用之前必须将它初始化”
有谁告诉我是怎么回事,要怎么弄呀?