CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    14

    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.

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    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
  •  





Click Here to Expand Forum to Full Width

Featured