Hi,
I have a user control that has a treeview. I have linked the treeview to an imagelist and set the imageindex of the nodes to images from the imagelist. They all appear correctly at design time.

I also have a separate form that has a listview that is also linked to an imagelist (Tried linking to smallIcon and largeIcon). I have manually added listview items and set the imageIndex (and tried imagekey) of the items to icons available in imagelist. These appear correctly at deisgn time. In my main sub i have a call to .DoEvents

Code:
Application.EnableVisualStyles()
        Application.DoEvents()
        Application.Run(frmMainInstance)
I have also tried to add icons programmatically,

Code:
Me.list.Items(0).ImageKey = 0
I have tried all 5 listview view modes.

When I run the app no icons appear in treeview or listview. I can't think of what I'm doing wrong. Any ideas?