I'm new to Vb.net and I will like to read data from a directory into an array and be able to databind the array elements to a listbox or a checkbox.
I also want to be able to databind each array element to the button whereby I can click on the button and the button will perform certain functions. thank you in advance and below are the code that I have so far. Also, I want to be able to do this in a form.
'start
Dim profile As String
Dim path As Integer
Dim returnValue As String()
returnValue = System.IO.Directory.GetFileSystemEntries("o:\\T2000\Profiles")
For path = 1 To UBound(returnValue)
Console.WriteLine(returnValue(path))
Next
'end
I also want to be able to databind each array element to the button whereby I can click on the button and the button will perform certain functions. thank you in advance and below are the code that I have so far. Also, I want to be able to do this in a form.
'start
Dim profile As String
Dim path As Integer
Dim returnValue As String()
returnValue = System.IO.Directory.GetFileSystemEntries("o:\\T2000\Profiles")
For path = 1 To UBound(returnValue)
Console.WriteLine(returnValue(path))
Next
'end