BUG: eVB: Editing a TreeView Node Causes LostFocus Event to Fire (262517)



The information in this article 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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Microsoft eMbedded Visual Basic 3.0.
  2. Create a new Windows CE for the Pocket PC project.
  3. On the Projects menu, click to select the Components list, and then select Microsoft CE TreeView Control 3.0.
  4. Add a ListBox control and a TreeView control to the form, and then add the following code:
    Private Sub Form_Load()
    	TreeViewCtl1.Nodes.Add , , , "Test"
    End Sub
    
    Private Sub TreeViewCtl1_LostFocus()
    	List1.AddItem "LostFocus"
    End Sub
    					
  5. Run the project, and click on the "Test" 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.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbDSupport KB262517