hey guys i got my list box working.but it lists the path and the name..
ist it possible list only the image it self?
Code:Imports System.IO Public Class Form3 Private Sub FindFiles_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindFiles.Click Dim thefiles() As String 'change the path to a path that exists in your machine thefiles = Directory.GetFiles("C:\Users\TECHKER\Desktop\PROGRAMMING\PROJECTS\trainersTool\images\plyo") Me.ListBox1.DataSource = thefiles End Sub Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged End Sub End Class




Reply With Quote