BUG: eVB: NodeClick Event Fires First Time TreeView Gets Focus (262520)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q262520 SYMPTOMS
When you have a project that contains the Microsoft Windows CE Toolkit for Visual Basic TreeView control, the first time the control gets focus, the NodeClick event fires.
RESOLUTION
To work around this problem, you can set a flag in the Form_Load event. Then, the first time the NodeClick event fires, which is the first time the TreeView control gets focus, you need to clear the flag. Replace the code in the sample under "Steps to Reproduce Behavior" later in this article with the following:
Option Explicit
Dim bFirstTime As Boolean
Private Sub Form_Load()
bFirstTime = True
TreeViewCtl1.Nodes.Add , , , "Test"
End Sub
Private Sub TreeViewCtl1_NodeClick(ByVal Index As Long)
If Not bFirstTime Then
List1.AddItem "NodeClick"
Else
bFirstTime = False
End If
End Sub
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES261940 BUG: eVB: TreeView: Showing Form on NodeClick Event Displays Form Behind Active Form
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDSupport KB262520 |
---|
|