Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...