No +/- in TreeView

M

martdi

I am writing an application in Access that needs a TreeView.

I have drawn a TreeView in my form.

I have set the style property to 6 - tvwTreeLinesPlusMinusText, but the
plus/minus won't appear in my form.

the object class is:
MSComctlLib.TreeCtrl.2

OLE Application is:
TreeCtrl

Is there a way to make the +/- appear ?
 
M

martdi

Well, I just found out that the plus does not appear on topmost nodes
of the tree, but it appears on childs of the top ones.

So how can i do to make the +/- on the topmost nodes ?
 
M

martdi

treListeAcces is my TreeView

"_" & noAcc is the key of the node
strNomAcces is the string variable containing the text I want to
display

treListeAcces.Nodes.Add , , "_" & noAcc, strNomAcces
 
M

martdi

Well, I have finally been able to make the +/- appear by changing the
LineStyle of my treeview to tvwRootLines.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top