|
-
July 28th, 1999, 09:53 AM
#1
Controls/RESOURCE
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.
-
July 28th, 1999, 11:46 AM
#2
Re: Controls/RESOURCE
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))
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|