OK, im new to VB.NET but have been a visual fox developer for seven years or so.
what I'm trying to do is create a listview in detail view with some graphical icons down the side, easy you may think but Ive been going at this for around 4 days now (on and off) and I cant get it to do anything.
does anyone know how to populate an imagelist programmaticall so I can attach images (at runtime) into the listview by use of a key (an index will do at the moment)
dim imagex as image
dim imagelistx as new ImageList
imageListx.Images.Item(1).FromFile("g:\hd\datadev\graphics\add.bmp")
me.ListView1.SmallImageList = imageListx
me.ListView1.Items.Add("test 1")
me.ListView1.Items(1).ImageIndex = 1
me.ListView1.Items.Add("test 2")
me.ListView1.Items(2).ImageIndex = 1
me.ListView1.Items.Add("test 3")
me.ListView1.Items(3).ImageIndex = 1
me.ListView1.Items.Add("test 4")
me.ListView1.Items(4).ImageIndex = 1
it dosent work.
if anyone could help I would be forever greatful. and its my 30th birthday today so I'd really like to get this going.
Any resources would be helpfull.
Thanks in advance.
Steve.