Tree View Control not working in MS Access 2003

L

Lary

I working with the TreeView control in MS Access for the first time and going
through some examples.

Right off the bat, I do not show any styles under the TreeCtrl Properties.

Any ideas?

lsl
 
E

Endré

To change the node settings in your treeview control (xTree) you will need to
use the Visual Basic Editor to enter code such as:

Private Sub xTree_NodeClick(ByVal Selnode As Object)

Dim nodCurrent As Node
Set nodCurrent = Selnode

nodCurrent.ForeColor = RGB(90, 10, 250)
nodCurrent.BackColor= RGB(0, 255, 255)
nodCurrent.Bold = True
xTree.Object.Font = "Comic Sans MS"

End Sub

Note that most settings are global to the treeview control e.g. Font.

This is the closest you will get to styles.
 
Top