TreeView-Deselect node (SelectedItem=nothing) |
Post Reply |
Author | |
marcelo
Newbie Joined: 16 December 2010 Location: Brasil Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
True.
Seem that there isn't way to set the selected node to Nothing.
It's a bug????
|
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |