To set the component properties

  1. Select ComboBox1 on the form.
  2. In the Object Inspector, set the Style property drop-down to csOwnerDrawFixed.
  3. In the Object Inspector, click the ellipsis next to the Items property. The String List Editor displays.
  4. Enter a string you would like to associate with the bitmap image, for example, MyImage; then click OK.
  5. Double-click ImageList1 in the form. The ImageList editor displays.
  6. Click the Add button to display the Add Images dialog.
  7. Locate a bitmap image to display in the Combo box.

To locate an image, you can search for *.bmp images on your local drive. Select a very small image such as an icon. Copy it to your project directory, and click Open.

The image displays in the ImageList editor.

8. Click OK to close the editor.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment