ImageList image list control

ImageList image list control

The ImageList control is a collection containing images, and the
image list control is a collection containing image objects. Each object in the collection can be referenced by index or keyword.
The imageList space cannot be used alone, it
can only be used to provide images for other controls in the windows form.
The main properties of the ImageList control

Use of ImageList

1. Place the ImageList control on the form, but the ImageList control does not appear on the form, and the ImageList appears below the form.
2. Add a picture: Click the button on the right side of the Images property to open the "Image Collection Editor" window.

3. Click the "Add" button in the "Image Collection Editor" window, select the desired image file, and complete the image addition.

4. ImageSize property sets the size of the picture
ListView list view control

ListView控件用于以特定样式或视图类型显示列表项。
就像Windows 资源管理器右侧窗格一样的用户界面。
它有多种视图模式,如大图标(Largelcon)、小图标(Smalllcon)、列表(List)、详细信息(Detail)、平铺(Tile)。
ListView 控件的主要属性、事件和方法
ListView控件的 Items 属性表示包含在控件中的所有项的集合,
它的每一项都是一个ListViewItem(列表视图项)视图模式的对应值——View.LargeImageList \ List \

修改ListView 的视图模式为

this.listView1.View = View.Details;

Guess you like

Origin blog.csdn.net/qq_50722361/article/details/110420407