回答編集履歴
1
アイコンが表示されたのでよしとしていましたが、指摘が入りましたので修正
test
CHANGED
@@ -16,21 +16,15 @@
|
|
16
16
|
|
17
17
|
{
|
18
18
|
|
19
|
-
imageListSmall.Images.Clear();
|
20
|
-
|
21
|
-
imageListSmall.ImageSize = new Size(16, 16);
|
22
|
-
|
23
|
-
lstView.SmallImageList = imageListSmall;
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
lstView.Items.Add(files[i], i);
|
19
|
+
lstView.Items.Add(files[i], itemCount);
|
28
20
|
|
29
21
|
Icon appIcon = System.Drawing.Icon.ExtractAssociatedIcon(files[i]);
|
30
22
|
|
31
|
-
lstView.Items[lstView.Items.Count - 1].ImageIndex = i
|
23
|
+
lstView.Items[lstView.Items.Count - 1].ImageIndex = itemCount;
|
32
24
|
|
33
25
|
imageListSmall.Images.Add(appIcon);
|
26
|
+
|
27
|
+
itemCount += 1;
|
34
28
|
|
35
29
|
}
|
36
30
|
|