>>>>When I build my treeview, is there a way to have the refresh?
>>>Probably the only way to refresh it - to clear nodes and refill it
>>again -
>>if it is that what you mean.
>>
>>It my case, depending on some actions, I need to change the bitmaps.
>>So, I
>>can't empty the treeview as it won't be useful because only the
>>bitmaps
>>will change.
>
>What about just updating the Nodes(x).Image, Nodes(x).ExpandedImage, or
>Nodes(x).SelectedImage properties to contain the new image number? (I
>haven't tried this).
What I did, it this:
ThisForm.LockScreen=.T.
ThisForm.oTree.Left=-2000
...
ThisForm.oTree.Left=25
ThisForm.LockScreen=.F.
This avoid the tree view to refresh. I heard this at DevCon. The treeview is not affected by LockScreen. However, I have LockScreen here in order to make sure no other control will be refresh, just in case.