高分求:如何确定TreeView的SelectedItem为空? ******* 还有,如何判断一个节点已经是Root节点呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还有,如何判断一个节点已经是Root节点呢? 还有,如何判断一个节点已经是Root节点呢?有可能这个Root节点并无Children 1.If Not Tvw.SelectedItem Is Nothing Then2.判断节点.chileren 1.If Not Tvw.SelectedItem Is Nothing Then2.判断节点.chileren to up:1 对了2. 是否是Root节点啊,这样是不行的。 假如有Children的不一定是Root啊,还可以有父节点的。用 if treeview1.selecteditem.parent is nothing then是可以,但是好像麻烦了哦 >>if trwwview1.selecteditem=nothing then 应该是if trwwview1.selecteditem is nothing then 判断Root节点:If Node.Key = Node.Root.Key Then Debug.Print "Root Node"End If 用 if treeview1.selecteditem.index=0 then end if解决判断是否为Root点. 更正:接点为1用 if treeview1.selecteditem.index=1 then end if解决判断是否为Root点. vb里面能不能实现这样的功能? 送分100分:在设计ACCESS数据库时,有哪些技巧,大家共同分享一下。 可以调用其它程序完成指定工作么? 请教:在VB中如何引用dll工程?急... 今日高兴,散分!!!顺便送朋友一个记事本。 请问一个二进制文件读写的问题 vb 如何在任务管理器中的任务程序中这一栏隐藏? 怎样使无标题栏的窗口的图标和控制菜单显示在任务栏上? 先谢谢大家,,小弟受一朋友所托,用VB编一窗体,十万火急,"高分悬赏,十分简单,来者有份"~~!谢谢大家.大家都来帮忙啊..着急 请问:怎么调用另一个窗口中的事件? 破密Excel 在VB中如何检测右键的按下??在线等
有可能这个Root节点并无Children
2.判断节点.chileren
2.判断节点.chileren
1 对了
2. 是否是Root节点啊,这样是不行的。
假如有Children的不一定是Root啊,还可以有父节点的。用 if treeview1.selecteditem.parent is nothing then
是可以,但是好像麻烦了哦
应该是
if trwwview1.selecteditem is nothing then
If Node.Key = Node.Root.Key Then
Debug.Print "Root Node"
End If
解决判断是否为Root点.
用 if treeview1.selecteditem.index=1 then end if
解决判断是否为Root点.