M
Markus.Humm
Hello,
I'm using CF 1.0 and neither VB.net nor C# as programming environment.
My application does its job so far but now I want to add icons to a
ListView.
I created two bitmaps by code and a ImageList (also by code, can't use a
designer here) and added the two bitmaps.
I assigned the ImageList to the ListView (both: Small and LargeImages)
and set the ImageIndex of some ListViewItem to 0 (my first image in the
ListView). I get a NullReferenceObject or similar exception. My ListView
is set to contain 2 columns.
What's causing the exception and how to solve it?
No, I don't want to use VB.net or C#...
Greetings
Markus
I'm using CF 1.0 and neither VB.net nor C# as programming environment.
My application does its job so far but now I want to add icons to a
ListView.
I created two bitmaps by code and a ImageList (also by code, can't use a
designer here) and added the two bitmaps.
I assigned the ImageList to the ListView (both: Small and LargeImages)
and set the ImageIndex of some ListViewItem to 0 (my first image in the
ListView). I get a NullReferenceObject or similar exception. My ListView
is set to contain 2 columns.
What's causing the exception and how to solve it?
No, I don't want to use VB.net or C#...
Greetings
Markus