| | |
Filling listbox with files in a directory
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
Hi,
Try this
Hope it helps
Try this
VBNET Syntax (Toggle Plain Text)
Dim folderInfo As New IO.DirectoryInfo("c:\windows") Dim arrFilesInFolder() As IO.FileInfo Dim fileInFolder As IO.FileInfo arrFilesInFolder = folderInfo.GetFiles("*.*") For Each fileInFolder In arrFilesInFolder ListBox1.Items.Add(fileInFolder.Name) Next
-- Martín
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: USB driver files
- Next Thread: video captions in vb.net
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add application arithmetic array assignment basic binary bing box button buttons click code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists file-dialog firewall folder google hardcopy image images isnumericfuntioncall login math memory mobile module ms msaccess mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox1 port print printpreview problemwithinstallation project record regex reports" reuse right-to-left save savedialog serial sqldatbase storedprocedure string temp text textbox timer toolbox updown useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf xml





