Hi guys
I need your help a bit.
I have designed a tree view control and the user can select multiple options.
Now the problem lies in:
"When the user clicks on show button a msgbox appears showing all the items selected"....This is what I want to do. but is clueless on how to do.
Please help me out ASAP
Thank You in advance
ankush.mukherje
0
Junior Poster
Recommended Answers
Jump to PostWhat does tv1.SelectedItem.Key returns ?
Jump to PostYou will have to enumerate through the nodes to find out which ones have been selected and if they have then retrieve the information you want from them...
Option Explicit Private Sub Form_Load() Dim N As Node Set N = TV.Nodes.Add(, , "Root1", "Root1") Set N = …
Jump to PostHi, Ankush!
So, if you don't explicit a value for the key when you load your TreeView control, it will return empty if you test.
Take a look:
…'TreeView1.Nodes.Add Relative, Relationship, Key, Text, Image, ImageSelected TreeView1.Nodes.Add , , , "Texto1" TreeView1.Nodes.Add , , "K01", "Texto2"
All 9 Replies
debasisdas
580
Posting Genius
Featured Poster
ankush.mukherje
0
Junior Poster
ankush.mukherje
0
Junior Poster
vb5prgrmr
143
Posting Virtuoso
sidnei
12
Junior Poster in Training
ankush.mukherje
0
Junior Poster
ankush.mukherje
0
Junior Poster
vb5prgrmr
143
Posting Virtuoso
ankush.mukherje
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.