Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 2.44 KB

how-to-add-or-remove-imagelist-images-with-the-designer.md

File metadata and controls

37 lines (25 loc) · 2.44 KB
title description ms.date helpviewer_keywords ms.assetid
How to: Add or Remove ImageList Images with the Designer
Learn about several ways that you can add images to an ImageList component, including by using the Properties window and using the smart tag.
03/30/2017
ImageList component [Windows Forms], adding images
ImageList component [Windows Forms], removing images
images [Windows Forms], adding to ImageList component
5699b244-e37c-4d20-bc35-7441e55c1e3a

How to: Add or Remove ImageList Images with the Designer

You can add images to an xref:System.Windows.Forms.ImageList component several different ways. You can add images very quickly by using the smart tag associated with the xref:System.Windows.Forms.ImageList, or if you are setting several other properties on the xref:System.Windows.Forms.ImageList, you may find it more convenient to add images with the Properties window. You can also add images by using code. For more information about how to add images with code, see How to: Add or Remove Images with the Windows Forms ImageList Component. Typically you populate the xref:System.Windows.Forms.ImageList component with images before it is associated with a control, but this is not required.

To add or remove images by using the Properties window

  1. Select the xref:System.Windows.Forms.ImageList component, or add one to the form.

  2. In the Properties window, click the ellipsis button (The Ellipsis button (...) in the Properties window of Visual Studio.) next to the xref:System.Windows.Forms.ImageList.Images%2A property.

  3. In the Image Collection Editor, click Add or Remove to add or remove images from the list.

To add or remove images using the smart tag

  1. Select the xref:System.Windows.Forms.ImageList component, or add one to the form.

  2. Click the designer actions glyph (Small black arrow)

  3. In the ImageList Tasks dialog box, select Choose Images.

  4. In the Images Collection Editor click Add or Remove to add or remove images from the list.

See also