Okay. So some of you know my program BNDSRM that helps you manage ROMs and stuff. So I have been planning on changing the listboxes to DataGridViews so I can have information in multiple columns. I have an idea how I am going to set it up and how I was going to fill the boxes and stuff, but its like an information overload kinda thing. I can see how I am going to do it, but I just stop and am like... How... How... I don't know.
I am using Visual Basic .NET I started this program in it and I am planning to finish it all the way until v1.0.0 in VB.NET and then rewrite it in C# .NET.
I need help with taking information and filling the DataGridView (4 columns), with the number of the ROM, the Name (of the file minus extension), the size, and the type of file it is (taken from the extension). I have For loop setup to list files in a listbox, looking at it, it looked like I could reuse most of the code but I just gave up after stalling (I have a tendency to do that).
Here is my function for listing the files:
Private Sub ListFiles(ByVal folderPath As String, ByVal exten() As String)
ListBox1.Items.Clear()
For Each fileEX As String In exten
Dim fileNames = My.Computer.FileSystem.GetFiles(folderPath, FileIO.SearchOption.SearchTopLevelOnly, fileEX)
For Each filename As String In fileNames
Dim inSlash As Long
Dim arry = 0
inSlash = InStrRev(filename, "\")
filename = Mid(filename, inSlash + 1)
ListBox1.Items.Add(filename)
Dim array(0 To 9999) As String
array(arry) = filename
arry += 1
Next
Next
End Sub
If you need more info, please ask.