• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 26. Using ActiveX Controls > The ImageList Control

The ImageList Control

The TabStrip control can be enhanced by using an ImageList control, which stores images you'll be using in the form. It's populated at design time with these images. The ImageList control is hidden at runtime, but any of its images can be used in your form.

The frmImageList form, shown in Figure 26.24, is similar to the frmTabbed form, except that each tab has an image that comes from the ImageList control called imgPictures. The properties of the imgPictures ImageList control are shown in Figure 26.25. Notice that three pictures have been inserted. The General tab's size has been set to 16×16, and the tabSelect TabStrip control has been modified to include imgPictures as its ImageList under the General properties tab. The index of each picture in the imgPictures ImageList control has been added as the Image property for each tab in the TabStrip control; the Image property specifies which image in the bound ImageList control should be displayed in the particular tab.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint