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 |
|
5699b244-e37c-4d20-bc35-7441e55c1e3a |
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.
-
Select the xref:System.Windows.Forms.ImageList component, or add one to the form.
-
In the Properties window, click the ellipsis button (
) next to the xref:System.Windows.Forms.ImageList.Images%2A property.
-
In the Image Collection Editor, click Add or Remove to add or remove images from the list.
-
Select the xref:System.Windows.Forms.ImageList component, or add one to the form.
-
In the ImageList Tasks dialog box, select Choose Images.
-
In the Images Collection Editor click Add or Remove to add or remove images from the list.