Library tutorials & articles

Image List Control

Introduction

The Image List control allows you to add images to your program, which you can use in the other Common Controls (Toolbar, TreeView, ListView etc). To add the ImageList control to your VB project, click Project|Components, and check the box next to Microsoft Windows Common Controls x.x where x is the version of Visual Basic you are using.

REQUIRED FILES

If you will be installing a program using the ImageList control, you need to distribute the following files:
MSCOMCTL.OCX - 1MB (VB 6 SP3) or
COMCTL32.OCX - 596KB (VB 5 SP3)

Comments

  1. 23 Jul 2002 at 18:28

    I am  new to VB and I am sort working thru exercises in a book


    I came across one that has me a bit stuck
    It basically says to create a form with two ImageList Controls ,add the images to one control at design time and for the other ImageList i have to add the images from first Imagelist, i mean i have to write the code for that.



    This is proabably easy to do but as i said i am quite new at this


    thanks for any help possible


  2. 18 Apr 2002 at 11:02

    hey i hope this helps i was tryin to do the same thing you were tryin to do and i stuble upon your topic, try using this


    ImageList1.ListImages.Add ImageList1.ListImages.count + 1, , LoadPicture(txtLocalPath.Text)


    it can dynamiclly populate your imagelist with out having to load images before runtime

  3. 09 Apr 2002 at 05:12



    I am very new to VB and I am sort working thru exercises in a book


    I came across one that has me a bit stuck
    It basically says to create a form with two ImageList Controls  populate the first one lets say call it control1 with .ico  files the usual way and then in the second control  . . . control to add code to the form_load event prcedure that will transverse all the images in the first control and add a listimage to the second control using the same picture and key properties of the previous control


    This is proabably easy to do but as i said i am quite new at this


    thanks for any help possible


  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Image List Control.

Leave a comment

Sign in or Join us (it's free).