Hi,
I have recently used a image combo box and a tree view control in Access, and thought that my next task would follow a combination of these two, in putting images in a list box. Reading on the internet pointed me in the direction of listviews.
I have the following code, on_load in my form.
Me.imgList1.ListImages.Add 1, "MAIN", LoadPicture("MAIN_ICON.bmp")
Me.imgList1.ListImages.Add 2, "SUB", LoadPicture("SUB_ICON.bmp")
lstView1.View = lvwSmallIcon
lstView1.Icons = imgList1
However i get an invalid object on the following line
lstView1.Icons = imgList1
Could anyone advise of the correction? This is my 1st time using these.
TIA
Nathan
I have recently used a image combo box and a tree view control in Access, and thought that my next task would follow a combination of these two, in putting images in a list box. Reading on the internet pointed me in the direction of listviews.
I have the following code, on_load in my form.
Me.imgList1.ListImages.Add 1, "MAIN", LoadPicture("MAIN_ICON.bmp")
Me.imgList1.ListImages.Add 2, "SUB", LoadPicture("SUB_ICON.bmp")
lstView1.View = lvwSmallIcon
lstView1.Icons = imgList1
However i get an invalid object on the following line
lstView1.Icons = imgList1
Could anyone advise of the correction? This is my 1st time using these.
TIA
Nathan