General information
Category:
ActiveX controls in VFP
>If this code is in the Form.Activate() you need to take steps to ensure that is only runs once - otherwise it will attempt to add the nodes to the tree again.
>
>Yes first treview works fine. Every thing shows ok on its place. Second time when FORM get ACTIVATE evnets then error message appears
>
>What is wrong?
As above - you're attempting to load the tree each time Activate() fires. Can you put this code in the Init() instead - or set a flag the first time Activate fires and skip the operation on subsequent events.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only