我试图在列表视图列标题上绘制排序箭头以及默认的视觉样式。
到目前为止我已经拿到这个了
Private Sub List_DrawColumnHeader(sender As Object, e As DrawListViewColumnHeaderEventArgs) Handles List.DrawColumnHeader
e.DrawDefault = True
If e.ColumnIndex = selectedIndex Then
e.Graphics.DrawImage(ImageList1.Images(1), CType(e.Bounds.L
我在windows窗体中有三个视图节点的treeview
我想知道的是,是否可以将文本与图像连接起来。我是说
注意:图像当前存储在ImageList中
This is a node (image here)
Another node (image here)
我试着做这样的事情:
nodes[idx].Text = nodes[idx].Text + nodes[idx].ImageIndex;
但它只是做了这样的事情:
This is a node 10
Another node 10
它不是使用图像,而是将当前图像索引值。
有可能实现我想要的目标吗?