Format MS Treeview Ctrl sp2 6.0

Rank Am

Registered User.
Local time
Today, 17:58
Joined
Apr 30, 2005
Messages
68
Hi,
I have a recursively filled treeview control on a form that shows a concatenated ID and Description. The display is a variable varText

Code:
nodCurrent = objTree.Nodes.Add(nodParent, tvwChild, strKey, varText)

varText holds the display in the treeview

Anyone know if there is anyway of adding 2 fields to be displayed in a treeview ctrl so it appears that the second variable is Tabbed away from the ID.
Concatanating the strID and strTextField doesn't work as a tab character doesn't work in the treeview as below
Code:
varText = rs(strID) & Chr(9) & "(" & rs(strTextField) & ")"
rs is a recordset.
BTW strID is also the Treeview key

another alternative would be for the ID to be bold and varText normal but I also have no idea how to do this

Thanks in advance for anyhelp

Regards

Jon
 
Thanks, will check it out.

I hate it when users start complaining about format issues it always seems to be problematic to sort out.

Regards

Jon
 

Users who are viewing this thread

Back
Top Bottom