using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace imageListToView
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < imageList1.Images.Count; i++)
{
ListViewItem item = new ListViewItem(i.ToString(),i);
listView1.Items.Add(item);
}
}
}
}
ImageList要绑定到listView的LargeImageList属性上。