DV TreeList控件,CheckBox用法请教
DV的TreeList控件,有点像自带的TreeView,比TreeView要强大些。将CheckBox显示出来后,点击CheckBox是可以选中/取消,但是现在想实现,选中此行后面的文本信息也可以实现CheckBox的选中/取消。如下图所示:
[解决办法]
手动给你改成vb.net的吧
private sub treeView1_MouseClick(byval sender as object ,byval e as MouseEventArgs) handles treeView1.MouseClick
dim ti as TreeViewHitTestInfo = treeView1.HitTest(e.Location)
if ( not(ti is nothing) andalso not( ti.Node is nothing)) then
ti.Node.Checked = not ti.Node.Checked
end if
end sub