techker Posted January 19, 2010 Posted January 19, 2010 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.. 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!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.