6 个解决方案
#1
// searches the current directory and sub directory
int fCount = Directory.GetFiles(path, "*", SearchOption.AllDirectories).Length;
// searches the current directory
int fCount = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).Length;
代码来自:
http://*.com/questions/2242564/file-count-from-a-folder
int fCount = Directory.GetFiles(path, "*", SearchOption.AllDirectories).Length;
// searches the current directory
int fCount = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).Length;
代码来自:
http://*.com/questions/2242564/file-count-from-a-folder
#2
Dim fileList() As String = System.IO.Directory.GetFiles("d:\", "*.*")
Dim i As Integer = fileList.Length
#3
这个问题已经解决了,不过还是谢谢你。 看你连续解决了我的两个问题,应该是很会vb.net 吧 能不能再请教点其它问题,就是vb.net中怎么让picturebox中的picture随鼠标的滚轮进行缩放,要以鼠标点为中心的 picturebox不动,之是以鼠标点为中心根据滚轮进行图片的缩放,这个该怎么做啊?
#4
缩放的方法网上有阿:
http://download.csdn.net/detail/hazf2008/1101738
http://download.csdn.net/detail/hazf2008/1101738
#5
谢谢你,不过我希望的是图片以鼠标的位置为中心缩放 这个例子是以左上角为基准点进行缩放,而且我是想滚动滚轮就让图片缩放,不需要按钮,按钮的话应该直接设置比例就可以吧
#6
厉害厉害呀
#1
// searches the current directory and sub directory
int fCount = Directory.GetFiles(path, "*", SearchOption.AllDirectories).Length;
// searches the current directory
int fCount = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).Length;
代码来自:
http://*.com/questions/2242564/file-count-from-a-folder
int fCount = Directory.GetFiles(path, "*", SearchOption.AllDirectories).Length;
// searches the current directory
int fCount = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).Length;
代码来自:
http://*.com/questions/2242564/file-count-from-a-folder
#2
Dim fileList() As String = System.IO.Directory.GetFiles("d:\", "*.*")
Dim i As Integer = fileList.Length
#3
这个问题已经解决了,不过还是谢谢你。 看你连续解决了我的两个问题,应该是很会vb.net 吧 能不能再请教点其它问题,就是vb.net中怎么让picturebox中的picture随鼠标的滚轮进行缩放,要以鼠标点为中心的 picturebox不动,之是以鼠标点为中心根据滚轮进行图片的缩放,这个该怎么做啊?
#4
缩放的方法网上有阿:
http://download.csdn.net/detail/hazf2008/1101738
http://download.csdn.net/detail/hazf2008/1101738
#5
谢谢你,不过我希望的是图片以鼠标的位置为中心缩放 这个例子是以左上角为基准点进行缩放,而且我是想滚动滚轮就让图片缩放,不需要按钮,按钮的话应该直接设置比例就可以吧
#6
厉害厉害呀