fill table

B

brian

I am trying to Dynamically create a table and can't
figure it out. I've been looking at the table class but
don't understand how to use it. I am new with using .net

Below is my code. I would like to have a table that for
every instance of 'file' it places in the table as a
hyperlink instead of the listbox. The hyperlink open a
file and adobe reader.

Thanks

I placed a table on my web form and it's called 'table1'

Private Sub Main(ByVal Path As String)

Dim dirs() As String = Directory.GetDirectories
(Path)
Me.ListBox1.Items.Clear()
Dim dir As String
For Each dir In dirs
Me.ListBox1.Items.Add(dir)
Dim files() As String = Directory.GetFiles
(dir)
For Each file In files
Me.ListBox2.Items.Add(file)
Next
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top