Need help with a GUI code

Basically I want to make a very simple GUI, I have folders named a,b,c,d etc...

And I want to make a Button for each letter, and when pressed I would like it to bring up the contents of that folder (just for reference these folders will be run from a cd) maybe in a box(listview possibly?) on the GUI but I am not 100% sure how this works.

And the last part and most important would be after the GUI shows the contents of that folder I would want a certain program to open the file when selected.

I know how to design the GUI but I don't know the code to do the above mentioned or what type of box or whatever I need to display the folder.

Using Microsoft Visual studio 2005, with Visual Basic as a Language
[748 byte] By [dfc420] at [2007-11-20 8:26:35]
# 1 Re: Need help with a GUI code
I may have gotten a little figured out... the GUI is done being designed I just need help with this code...

Here is what I have for the first button...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' make a reference to a directory
Dim di As New IO.DirectoryInfo("C:\directory i need")
Dim diar1 As IO.FileInfo() = di.GetFiles()
Dim dra As IO.FileInfo
For Each dra In diar1


I guess that makes the button call that directory? but then how to make that show in my ListView box? And once they show up in listview box how do I make it so they will run with a program of my choice? Lets pretend I'm a complete newbie to Programming.

BTW I am going to be putting this on CD and thats how I want it to work, I have an autorun file I will put on the cd to run the Gooey when the CD is inserted. Since I am running this from cd and thats where all the files will be located would my directory always have to be "d:/"(cd drive) or am I going about this wrong Because I dont think everyone's cd drive is D: is it:?
dfc420 at 2007-11-10 3:09:22 >
# 2 Re: Need help with a GUI code
No, not everyones drive is D, you can use:

AppDomain.CurrentDomain.BaseDirectory

To return the directory your program is running from.
Rich2189 at 2007-11-10 3:10:33 >
# 3 Re: Need help with a GUI code
Any help on the OPost?
dfc420 at 2007-11-10 3:11:31 >