锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产亚洲精品,国产精品无码久久久久久,久久这里只精品99re66http://www.shnenglu.com/ngaut/category/10735.htmlasm/c/c++/......zh-cnSun, 31 May 2009 10:07:20 GMTSun, 31 May 2009 10:07:20 GMT60.net winform ListView鎿嶄綔http://www.shnenglu.com/ngaut/archive/2009/05/31/86276.htmlngautngautSun, 31 May 2009 08:25:00 GMThttp://www.shnenglu.com/ngaut/archive/2009/05/31/86276.htmlhttp://www.shnenglu.com/ngaut/comments/86276.htmlhttp://www.shnenglu.com/ngaut/archive/2009/05/31/86276.html#Feedback0http://www.shnenglu.com/ngaut/comments/commentRss/86276.htmlhttp://www.shnenglu.com/ngaut/services/trackbacks/86276.htmlprivate void Form1_Load(object sender, EventArgs e)
        
{
            CreateMyListView();
        }


        
private void CreateMyListView()
        
{
            
// Create a new ListView control.
            ListView listView1 = new ListView();
            listView1.Bounds 
= new Rectangle(new Point(1010), new Size(300200));

            
// Set the view to show details.
            listView1.View = View.Details;
            
// Allow the user to edit item text.
            listView1.LabelEdit = true;
            
// Allow the user to rearrange columns.
            listView1.AllowColumnReorder = true;

            
// Display check boxes. 鏄惁鏄劇ず澶嶉夋
            listView1.CheckBoxes = true;
            
// Select the item and subitems when selection is made. 鏄惁閫変腑鏁磋
            listView1.FullRowSelect = true;
            
// Display grid lines. 鏄惁鏄劇ず緗戞牸
            listView1.GridLines = true;
            
// Sort the items in the list in ascending order. 鍗囧簭榪樻槸闄嶅簭
            listView1.Sorting = SortOrder.Ascending;

            
// Create three items and three sets of subitems for each item.
            ListViewItem item1 = new ListViewItem("item1"0);
            
// Place a check mark next to the item. 澶嶉夋鏄惁閫変腑
            item1.Checked = true;
            item1.SubItems.Add(
"1");
            item1.SubItems.Add(
"2");
            item1.SubItems.Add(
"3");
            ListViewItem item2 
= new ListViewItem("item2"1);
            item2.SubItems.Add(
"4");
            item2.SubItems.Add(
"5");
            item2.SubItems.Add(
"6");
            ListViewItem item3 
= new ListViewItem("item3"0);
            
// Place a check mark next to the item.
            item3.Checked = true;
            item3.SubItems.Add(
"7");
            item3.SubItems.Add(
"8");
            item3.SubItems.Add(
"9");

            
// Create columns for the items and subitems.
            listView1.Columns.Add("Item Column"-2, HorizontalAlignment.Left);
            listView1.Columns.Add(
"Column 2"-2, HorizontalAlignment.Left);
            listView1.Columns.Add(
"Column 3"-2, HorizontalAlignment.Left);
            listView1.Columns.Add(
"Column 4"-2, HorizontalAlignment.Center);

            
//Add the items to the ListView.
            listView1.Items.AddRange(new ListViewItem[] { item1, item2, item3 });

            
// Create two ImageList objects.
            ImageList imageListSmall = new ImageList();
            ImageList imageListLarge 
= new ImageList();

            
// Initialize the ImageList objects with bitmaps.
            imageListSmall.Images.Add(Bitmap.FromFile("C:\\MySmallImage1.bmp"));
            imageListSmall.Images.Add(Bitmap.FromFile(
"C:\\MySmallImage2.bmp"));
            imageListLarge.Images.Add(Bitmap.FromFile(
"C:\\MyLargeImage1.bmp"));
            imageListLarge.Images.Add(Bitmap.FromFile(
"C:\\MyLargeImage2.bmp"));

            
//Assign the ImageList objects to the ListView.
            listView1.LargeImageList = imageListLarge;
            listView1.SmallImageList 
= imageListSmall;

            
//澶у浘鏍?br>            //listView1.View = View.LargeIcon;

            
//灝忓浘鏍?br>            //listView1.View = View.SmallIcon;

            
//鍒楄〃
            
//listView1.View = View.List;

            
//璇︾粏淇℃伅
            listView1.View = View.Details;

            
// Add the ListView to the control collection.
            this.Controls.Add(listView1);
        }

    }


ngaut 2009-05-31 16:25 鍙戣〃璇勮
]]>
国内精品久久久久久野外| 99久久国产综合精品女同图片| 亚洲日韩中文无码久久| 午夜天堂精品久久久久| 国产美女久久精品香蕉69| 国产精品成人99久久久久91gav| 国产农村妇女毛片精品久久| 久久笫一福利免费导航 | 久久国产综合精品五月天| 国内精品久久久久久麻豆| 久久强奷乱码老熟女网站| 精品久久一区二区| 国产精品久久久久a影院| 91精品国产乱码久久久久久| 无码8090精品久久一区| 久久91精品国产91久久麻豆| 久久99九九国产免费看小说| 中文精品久久久久国产网址| 久久久久久久亚洲Av无码| 亚洲国产成人精品久久久国产成人一区二区三区综 | 日韩亚洲国产综合久久久| 国产美女久久精品香蕉69| 人妻系列无码专区久久五月天| avtt天堂网久久精品| 精品多毛少妇人妻AV免费久久| 国产午夜精品久久久久九九| 久久精品国产精品青草| 性高湖久久久久久久久| 欧美日韩久久中文字幕| 亚洲精品成人网久久久久久| 久久久WWW成人免费精品| 欧美精品一区二区精品久久| 99麻豆久久久国产精品免费| 亚洲精品无码久久久久去q | 成人久久免费网站| 亚洲国产天堂久久综合| 亚洲精品无码久久毛片| 三级三级久久三级久久| 一本久久知道综合久久| 久久久久久人妻无码| 91精品国产91热久久久久福利|