>>>>>Going nuts with treeview control. How do you set DropHighLight to Nothing ?
>>>>>This works :
>>>>>oNode = somenode
>>>>>.DropHighLight = oNode
>>>>>oNode = .NULL.
>>>>>
>>>>>But not this one (either already .Null. or not):
>>>>>.DropHighLight = .NULL. && Type mismatch
>>>>>
>>>>>I could totally drop using drophighlight if you know a way to highlight current node when the treeview is disabled.
>>>>>Any help would be appreciated. TIA.
>>>>>Cetin
>>>>
>>>>Cetin,
>>>>
>>>>I don't know if this works with the TreeView for VFP 5, but in VFP6, we just set the HideSelection property to .F. and the TreeView maintains it's highlight when it doesn't have focus or when it's not enabled.
>>>
>>>Fred,
>>>Unfortunately doesn't work in VFP5. Already it was .f. It only does so if enabled. Thanks.
>>>Cetin
>>
>>OK, when I tried it in VFP6, the TreeView was initially enabled, a node highlighted, and then I disabled it. Maybe you need to have it enabled until you actually have a node selected, then disable it?
>>
>>The node was selected via code, not via a mouse click.
>
>Thinking alike :) That didn't help either. It has the same backcolor for disabled items and selected item when treeview doesn't have focus (I couldn't find a place to change coloring).
>Cetin
Have you tried using the TreeView from VFP6 in your VFP5 app? I don't think there's any reason you can't, except maybe not having it. :)