Microsoft KB Archive/262517

= BUG: eVB: Editing a TreeView Node Causes LostFocus Event to Fire =

Article ID: 262517

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q262517



SYMPTOMS
The LostFocus event is fired when you attempt to edit a node of a TreeView control.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 Open Microsoft eMbedded Visual Basic 3.0. Create a new Windows CE for the Pocket PC project. On the Projects menu, click to select the Components list, and then select Microsoft CE TreeView Control 3.0.  Add a ListBox control and a TreeView control to the form, and then add the following code: Private Sub Form_Load TreeViewCtl1.Nodes.Add, , , &quot;Test&quot; End Sub

Private Sub TreeViewCtl1_LostFocus List1.AddItem &quot;LostFocus&quot; End Sub  Run the project, and click on the &quot;Test&quot; node until you get into edit mode. Note that the LostFocus event is fired and LostFocus is added to the ListBox control even though the Focus is still on the Node in the TreeView control.

Keywords: kbbug kbpending KB262517

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.