list images with drag and drop function..

techker

Newcomer
Joined
Jan 19, 2010
Messages
1
Hey guys i want to make my self a trainers program so im stock at making a form with a drop down list of the images with description and that i can grab that picture and insert it on a grid for workouts..

i have a list box set up but nothing is working?blank..

Code:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        Dim Allfiles As String() = IO.Directory.GetFiles("C:\Users\TECHKER\Desktop\PROGRAMMING\PROJECTS\trainersTool\trainersTool\Images")
        Dim strfile As String
        For Each strfile In Allfiles
            Dim filename As New IO.FileInfo(strfile) '/// this will give you the file name etc...
            ListBox1.Items.Add(filename.Name)
        Next
    End Sub

buy the way how can i make the path go in to my project?

like i want to put my image folders in my project but i can seem to figure out the path..

thx for the help!!
 
Back
Top