Click to See Complete Forum and Search --> : Controls/RESOURCE


Jagdish Krishnan
July 28th, 1999, 09:53 AM
hi all,
i am facing a problem when i am using a resource file . i am actually putting all the
bmp's and strings in resource files and then using in the project vb 6.0 . when i say
picture1.picture = loadrespicture(ID,0) it properly works .

but when i actually asssign it to an say imagelist it starts giving problems
dim img as imagelist
set img = imagelist.listimages.add ,,loadrespicture(id,0)
this gives an type mismatch and when i add with key it give key unique error .
how do i add the images to the toolbar .. please help.

any help would be greatly appreciated.

Lothar Haensler
July 28th, 1999, 11:46 AM
I just created a res file with 2 bitmaps and coded like this - no errors.


dim img as listimage
set img = i.Imagelist.add(,"Test", LoadRespicture(101,0))
set img = i.Imagelist.add(,"Test2", LoadRespicture(102,0))