文件名称:VBListViewfilebs
-
所属分类:
- 标签属性:
- 上传时间:2014-04-29
-
文件大小:4.23kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
VB使用ListView控件改进一个文件浏览器的功能,使其变为“增强版”,将文件的标题、列表项目序号、文件大小,创建时间等属性信息都显示出来,核心代码:Me.Top = (Screen.Height - Me.Height) / 2窗体位置在屏幕中间,以下代码为ListView1添加标题栏:
ListView1.ColumnHeaders.Add , , "文件名称", ListView1.Width / 3, 0
第一个标题栏是"文件名称",长度为ListView1宽度的三分之一 , 文字左对齐
Set clmX = ListView1.ColumnHeaders.Add(, , "序号", ListView1.Width / 6, 2)
第二个标题栏是"序号"
Set clmX = ListView1.ColumnHeaders.Add(, , "文件大小", ListView1.Width / 4, 1)
第三个标题栏是"文件大小"
Set clmX = ListView1.ColumnHeaders.Add(, , "创建时间", ListView1.Width / 3, 0)
第四个标题栏是"创建时间"
ListView1.SmallIcons = ImageList1
关联ImageList1中的图标-VB ListView control improvements using a file browser functionality, so that it becomes "Enhanced Edition", the title of the document, a list of item numbers, file size, creation date and other attribute information is displayed, the core code: Me.Top = (Screen.Height- Me.Height)/2 form position in the middle of the screen, add the following code to ListView1 title bar:
ListView1.ColumnHeaders.Add,, "File name", ListView1.Width/3, 0
The first column is the title of the "File name", length of third ListView1 width, left-justified text
Set clmX = ListView1.ColumnHeaders.Add (,, "number", ListView1.Width/6, 2)
The second title bar is "No."
Set clmX = ListView1.ColumnHeaders.Add (,, "file size", ListView1.Width/4, 1)
The third column is the title of "file size"
Set clmX = ListView1.ColumnHeaders.Add (,, "creation time", ListView1.Width/3, 0)
The fourth title bar is "Created"
ListView1.SmallIcons = ImageList1
The icon associated ImageList1
ListView1.ColumnHeaders.Add , , "文件名称", ListView1.Width / 3, 0
第一个标题栏是"文件名称",长度为ListView1宽度的三分之一 , 文字左对齐
Set clmX = ListView1.ColumnHeaders.Add(, , "序号", ListView1.Width / 6, 2)
第二个标题栏是"序号"
Set clmX = ListView1.ColumnHeaders.Add(, , "文件大小", ListView1.Width / 4, 1)
第三个标题栏是"文件大小"
Set clmX = ListView1.ColumnHeaders.Add(, , "创建时间", ListView1.Width / 3, 0)
第四个标题栏是"创建时间"
ListView1.SmallIcons = ImageList1
关联ImageList1中的图标-VB ListView control improvements using a file browser functionality, so that it becomes "Enhanced Edition", the title of the document, a list of item numbers, file size, creation date and other attribute information is displayed, the core code: Me.Top = (Screen.Height- Me.Height)/2 form position in the middle of the screen, add the following code to ListView1 title bar:
ListView1.ColumnHeaders.Add,, "File name", ListView1.Width/3, 0
The first column is the title of the "File name", length of third ListView1 width, left-justified text
Set clmX = ListView1.ColumnHeaders.Add (,, "number", ListView1.Width/6, 2)
The second title bar is "No."
Set clmX = ListView1.ColumnHeaders.Add (,, "file size", ListView1.Width/4, 1)
The third column is the title of "file size"
Set clmX = ListView1.ColumnHeaders.Add (,, "creation time", ListView1.Width/3, 0)
The fourth title bar is "Created"
ListView1.SmallIcons = ImageList1
The icon associated ImageList1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VB使用ListView控件增强文件浏览器/1.ico
VB使用ListView控件增强文件浏览器/Form1.frm
VB使用ListView控件增强文件浏览器/Form1.frx
VB使用ListView控件增强文件浏览器/工程1.vbp
VB使用ListView控件增强文件浏览器/工程1.vbw
VB使用ListView控件增强文件浏览器
VB使用ListView控件增强文件浏览器/Form1.frm
VB使用ListView控件增强文件浏览器/Form1.frx
VB使用ListView控件增强文件浏览器/工程1.vbp
VB使用ListView控件增强文件浏览器/工程1.vbw
VB使用ListView控件增强文件浏览器
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.