Error with Windows Common Control 6.0 (SP 6) - Tree View Control

Error with Windows Common Control 6.0 (SP 6) - Tree View Control

Post by U291cmFiaC » Tue, 11 Oct 2005 20:53:01

This is with respect to a problem with the Microsoft Windows Common Controls
6.0 (SP 6) - Tree View control.

Version being used:

Problem Description
We have some machines with Windows XP and Service pack 2 installed. While
running a visual basic application which uses the above mentioned control, it
throws an error nvalid Key We found that the error is when we add a node
in the tree view. Following is the code snippet being used:

1. Dim nodNode As Node
2. Dim sRelative As String

3. sRelative = "R"
4. tvRCMeas.Nodes.Add , , sRelative, arent Node
5. Set nodNode = tvRCMeas.Nodes.Add(sRelative, tvwChild, sRelative & 00
hild Node

The error is on the Line number: 5
But the error does not come on all machines. Some other machines also have
Windows XP and Service Pack 2 and are running fine.

Please get back with any solution/suggestions/ideas for this problem. An
immediate response will be appreciated.

1. VBA - Tree view control data is not displayed (TreeView 6.0, Excel 2000, Windows 2000)

2. UI problem with tab controls when using common controls 6.0

Ie run into a problem with the tab control from version 6.0 of the windows
common controls. If I create a dialog resource that includes a tab control
and then add other controls on top of the tab (e.g. static text, check boxes,
etc), the background of the controls placed on top of the tab do not match
the background of the tab. The new tab control renders the background with a
shade of grey that gets darker as you move from top to bottom. The controls
I place on the tab, however, still render their backgrounds using the
standard grey, so it looks bad. I tried setting the checkbox transparency
property to TRUE, but it did not make a difference. Interestingly, if I use
the PropertySheet, PropertyPage classes to do something similar, it works OK.

What must I do to have the control background rendered correctly?


3. Common Control Issue -- Tree View Items of Varying Size

4. Upgrades Controls to Microsoft Common Controls 6.0

5. Tree View Control and User Control

6. DateTimePicker Bug with Microsoft.Windows.Common-Controls 6.0

7. MS Windows Common Controls-2 6.0 (SP4)

8. MS Windows Common Controls-2 6.0 (SP4) using VBA in Excel

9. MS windows common controls 6.0 (SP4) missing

10. Error Msg on Trying to add MS Common Diagog Control ver 6.0

11. Tree Control Custom Draw Problems in Tree Control

12. Tree control - How to get the full path of selected Item in tree control

13. treeview control, MS Windows Common Control 5.0 (SP2)

14. Toolbar Control (Microsoft Windows Common Controls)?

15. ActiveX control from existing controls (windows common or another