View Single Post
  #1 (permalink)  
Old September 19th, 2006, 12:25 PM
postoak7 postoak7 is offline
Registered User
Join Date: Sep 2006
Location: , , USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10: TreeView example

In the TreeView example on pages 311 and following in Chapter 10, I was hoping to be able to set the Image and Selected Image parameters for a given node based on values in the underlying table. However if I set these parameters to fields in the source query I get the following run-time error:

Microsoft Visual Basic
Run-time error '35603':
Invalid key

Is there a way around this error? The values I'm pulling from the table are numeric, between 1 and 4 , and all have corresponding images in the ImageListCtrl.