文件名称:ListViewAddIcon
-
所属分类:
- 标签属性:
- 上传时间:2014-09-12
-
文件大小:23.4kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
C#为ListView列表视图添加Icon图标,这样功能更丰富些,以后还可以添加更多排列方式,像win系统那样,可以按图标、列表的方式显示。部分代码如下:
listView1.LargeImageList = imageList1
imageList1.ImageSize = new Size(37,36)
imageList1.Images.Add(Image.FromFile( 01.png ))
imageList1.Images.Add(Image.FromFile( 02.png ))
listView1.SmallImageList = imageList1
listView1.Items.Add( 我的美丽人生 )
listView1.Items.Add( 山间的驼铃声 )
listView1.Items[0].ImageIndex = 0
listView1.Items[1].ImageIndex = 1 -C# ListView list view for adding Icon icon, this function is more abundant, then you can also add more arrangement, as the system did win, you can press the icon, the way the list is displayed. Part of the code is as follows:
listView1.LargeImageList = imageList1
imageList1.ImageSize = new Size (37,36)
imageList1.Images.Add (Image.FromFile ( 01.png ))
imageList1.Images.Add (Image.FromFile ( 02.png ))
listView1.SmallImageList = imageList1
listView1.Items.Add ( My Beautiful Life )
listView1.Items.Add ( Tuoling mountain )
listView1.Items [0] .ImageIndex = 0
listView1.Items [1] .ImageIndex = 1
listView1.LargeImageList = imageList1
imageList1.ImageSize = new Size(37,36)
imageList1.Images.Add(Image.FromFile( 01.png ))
imageList1.Images.Add(Image.FromFile( 02.png ))
listView1.SmallImageList = imageList1
listView1.Items.Add( 我的美丽人生 )
listView1.Items.Add( 山间的驼铃声 )
listView1.Items[0].ImageIndex = 0
listView1.Items[1].ImageIndex = 1 -C# ListView list view for adding Icon icon, this function is more abundant, then you can also add more arrangement, as the system did win, you can press the icon, the way the list is displayed. Part of the code is as follows:
listView1.LargeImageList = imageList1
imageList1.ImageSize = new Size (37,36)
imageList1.Images.Add (Image.FromFile ( 01.png ))
imageList1.Images.Add (Image.FromFile ( 02.png ))
listView1.SmallImageList = imageList1
listView1.Items.Add ( My Beautiful Life )
listView1.Items.Add ( Tuoling mountain )
listView1.Items [0] .ImageIndex = 0
listView1.Items [1] .ImageIndex = 1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ListViewAddIcon/ListViewAddIcon/bin/Debug/01.png
ListViewAddIcon/ListViewAddIcon/bin/Debug/02.png
ListViewAddIcon/ListViewAddIcon/Form1.cs
ListViewAddIcon/ListViewAddIcon/Form1.designer.cs
ListViewAddIcon/ListViewAddIcon/Form1.resx
ListViewAddIcon/ListViewAddIcon/ListViewAddIcon.csproj
ListViewAddIcon/ListViewAddIcon/Program.cs
ListViewAddIcon/ListViewAddIcon/Properties/AssemblyInfo.cs
ListViewAddIcon/ListViewAddIcon/Properties/Resources.Designer.cs
ListViewAddIcon/ListViewAddIcon/Properties/Resources.resx
ListViewAddIcon/ListViewAddIcon/Properties/Settings.Designer.cs
ListViewAddIcon/ListViewAddIcon/Properties/Settings.settings
ListViewAddIcon/ListViewAddIcon.sln
ListViewAddIcon/ListViewAddIcon.suo
ListViewAddIcon/ListViewAddIcon/bin/Debug
ListViewAddIcon/ListViewAddIcon/bin
ListViewAddIcon/ListViewAddIcon/Properties
ListViewAddIcon/ListViewAddIcon
ListViewAddIcon
ListViewAddIcon/ListViewAddIcon/bin/Debug/02.png
ListViewAddIcon/ListViewAddIcon/Form1.cs
ListViewAddIcon/ListViewAddIcon/Form1.designer.cs
ListViewAddIcon/ListViewAddIcon/Form1.resx
ListViewAddIcon/ListViewAddIcon/ListViewAddIcon.csproj
ListViewAddIcon/ListViewAddIcon/Program.cs
ListViewAddIcon/ListViewAddIcon/Properties/AssemblyInfo.cs
ListViewAddIcon/ListViewAddIcon/Properties/Resources.Designer.cs
ListViewAddIcon/ListViewAddIcon/Properties/Resources.resx
ListViewAddIcon/ListViewAddIcon/Properties/Settings.Designer.cs
ListViewAddIcon/ListViewAddIcon/Properties/Settings.settings
ListViewAddIcon/ListViewAddIcon.sln
ListViewAddIcon/ListViewAddIcon.suo
ListViewAddIcon/ListViewAddIcon/bin/Debug
ListViewAddIcon/ListViewAddIcon/bin
ListViewAddIcon/ListViewAddIcon/Properties
ListViewAddIcon/ListViewAddIcon
ListViewAddIcon
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.