資源簡介
獲取指定文件夾下的所有子文件夾及文件
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.IO;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?ListBox
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????listBox1.HorizontalScrollbar?=?true;
????????????listBox1.ScrollAlwaysVisible?=?true;
????????????listBox1.SelectionMode?=?SelectionMode.MultiExtended;
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????FolderBrowserDialog?FB?=?new?FolderBrowserDialog();//實例化瀏覽文件夾對話框
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????39936??2017-03-18?22:18??ListBox\.vs\ListBox\v15\.suo
?????文件????????189??2017-03-18?21:26??ListBox\ListBox\App.config
?????文件??????10240??2017-03-18?22:16??ListBox\ListBox\bin\Debug\ListBox.exe
?????文件????????189??2017-03-18?21:26??ListBox\ListBox\bin\Debug\ListBox.exe.config
?????文件??????22016??2017-03-18?22:16??ListBox\ListBox\bin\Debug\ListBox.pdb
?????文件???????1791??2017-03-18?22:16??ListBox\ListBox\Form1.cs
?????文件???????5322??2017-03-18?22:16??ListBox\ListBox\Form1.Designer.cs
?????文件???????5817??2017-03-18?22:16??ListBox\ListBox\Form1.resx
?????文件???????3561??2017-03-18?21:47??ListBox\ListBox\ListBox.csproj
?????文件?????????42??2017-03-18?21:26??ListBox\ListBox\obj\Debug\CoreCompileInputs.cache
?????文件???????7288??2017-03-18?21:29??ListBox\ListBox\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????969??2017-03-18?21:47??ListBox\ListBox\obj\Debug\ListBox.csproj.FileListAbsolute.txt
?????文件???????1012??2017-03-18?22:16??ListBox\ListBox\obj\Debug\ListBox.csproj.GenerateResource.Cache
?????文件???????2384??2017-03-18?21:47??ListBox\ListBox\obj\Debug\ListBox.csprojResolveAssemblyReference.cache
?????文件??????10240??2017-03-18?22:16??ListBox\ListBox\obj\Debug\ListBox.exe
?????文件????????180??2017-03-18?22:16??ListBox\ListBox\obj\Debug\ListBox.Form1.resources
?????文件??????22016??2017-03-18?22:16??ListBox\ListBox\obj\Debug\ListBox.pdb
?????文件????????180??2017-03-18?21:47??ListBox\ListBox\obj\Debug\ListBox.Properties.Resources.resources
?????文件??????????0??2017-03-18?21:26??ListBox\ListBox\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2017-03-18?21:26??ListBox\ListBox\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2017-03-18?21:26??ListBox\ListBox\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件????????519??2017-03-18?21:26??ListBox\ListBox\Program.cs
?????文件???????1312??2017-03-18?21:26??ListBox\ListBox\Properties\AssemblyInfo.cs
?????文件???????2827??2017-03-18?21:26??ListBox\ListBox\Properties\Resources.Designer.cs
?????文件???????5612??2017-03-18?21:26??ListBox\ListBox\Properties\Resources.resx
?????文件???????1094??2017-03-18?21:26??ListBox\ListBox\Properties\Settings.Designer.cs
?????文件????????249??2017-03-18?21:26??ListBox\ListBox\Properties\Settings.settings
?????文件????????988??2017-03-18?21:26??ListBox\ListBox.sln
?????目錄??????????0??2017-03-18?21:26??ListBox\ListBox\obj\Debug\TempPE
?????目錄??????????0??2017-03-21?23:33??ListBox\.vs\ListBox\v15
............此處省略12個文件信息
- 上一篇:C# 各種 快遞單號查詢(順豐、圓通、天天快遞等)
- 下一篇:微信掃描網站登錄
評論
共有 條評論