| | |
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 |
.net .net2008 2005 2008 access account arithmetic array basic bing browser button buttons center check code combobox component crystalreport cuesent data database datagrid datagridview date datetimepicker dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters pdf picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial settings shutdown soap survey table tcp temperature text textbox timer timespan toolbox transparency trim update updown user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





