读书人

DV TreeList控件CheckBox用法请问

发布时间: 2013-07-16 22:38:04 作者: rapoo

DV TreeList控件,CheckBox用法请教
DV的TreeList控件,有点像自带的TreeView,比TreeView要强大些。将CheckBox显示出来后,点击CheckBox是可以选中/取消,但是现在想实现,选中此行后面的文本信息也可以实现CheckBox的选中/取消。如下图所示:
DV TreeList控件,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

读书人网 >VB Dotnet

热点推荐