1: using System;
2: using System.Collections.Generic;
3: using System.ComponentModel;
4: using System.Data;
5: using System.Drawing;
6: using System.Linq;
7: using System.Text;
8: using System.Windows.Forms;
9:
10: namespace TestApp
11: {
12: public partial class Form4 : Form
13: {
14: public Form4()
15: {
16: InitializeComponent();
17: }
18:
19: private void Form4_Load(object sender, EventArgs e)
20: {
21: //设置ListView的显示方式
22: listView1.View = View.Details;
23:
24: //设置大图标视图方式对应的imagelist
25: listView1.LargeImageList = imageList2;
26: //设置小图标视图方式对应的imagelist
27: listView1.SmallImageList = imageList1;
28:
29: //设置显示网格线
30: listView1.GridLines = tr