c#通过imagelist创建图标文字listview

 listView1.LargeImageList = imageList1;
            imageList1.ImageSize = new Size(37,36);
            //imageList1.Images.Add(Image.FromFile("Book.ico"));
            imageList1.Images.Add(Properties.Resources.ticketType);
            imageList1.Images.Add(Properties.Resources.ticketType);
            listView1.SmallImageList = imageList1;
            listView1.Items.Add("搜索");
            listView1.Items.Add("游戏");
            listView1.Items[0].ImageIndex = 0;
            listView1.Items[1].ImageIndex = 1;

你可能感兴趣的:(c#通过imagelist创建图标文字listview)