Print Page | Close Window

TreeView-Deselect node (SelectedItem=nothing)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17688
Printed Date: 23 November 2024 at 2:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TreeView-Deselect node (SelectedItem=nothing)
Posted By: marcelo
Subject: TreeView-Deselect node (SelectedItem=nothing)
Date Posted: 16 December 2010 at 6:21am
Good morning, my name is Marcelo and I'm from Brazil.
I am using ActiveX Xtreme SuitePro 2009 (13.4.0) for evaluation of the components in Visual Basic 6 SP6 is like to say I was impressed with the results and quality, congratulations.
I have a question on TreeView component, selecting a node passes the SelectedItem property to indicate that node is selected in the TreeView. I'd like to clear this node, but if I do not use TreeView.Selecteditem = nothing, not works the node is still marked. TreeView component in standard Visual Basic 6 by setting the property SelectedItem = nothing
clears the selected node. How do I deselect a node in the TreeView SuitePro?
Sorry for my English, I'm not very good at writing.
 
Private Sub PushButton1_Click()
  TreeView1.Nodes.Add , , , "Node 1"
  TreeView1.Nodes.Add , , , "Node 2"
  TreeView1.Nodes.Add , , , "Node 3"
  msgbox TreeView1.Selecteditem is nothing (result is TRUE)
  TreeView1.Nodes(1).Selected = True
  msgbox TreeView1.Selecteditem is nothing (result is FALSE)
  Set TreeView1.Selecteditem = nothing
  msgbox TreeView1.Selecteditem is nothing (result is FALSE)
End Sub



Replies:
Posted By: gibra
Date Posted: 18 December 2010 at 5:34am
True. Ouch
 
Seem that there isn't way to set the selected node to Nothing.
 
It's a bug???? Shocked
 
 


-------------
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net