Oct 8, 2003 #1 J jorge Well-known member Joined Jul 13, 2003 Messages 239 Location Belgium hey, how can i list all jpeg file in a perticular folder? The filelistbox from vb6 is gone in vb.net(2003) greets
hey, how can i list all jpeg file in a perticular folder? The filelistbox from vb6 is gone in vb.net(2003) greets
Oct 8, 2003 #2 dynamic_sysop Well-known member Joined Oct 1, 2002 Messages 1,039 Location Ashby, Leicestershire. you can use the GetExtension property, eg: Code: Path.GetExtension(" file path here for each file in your folder ") im not at my own pc so i cant slap an example together unfortunatly. hope it helps.
you can use the GetExtension property, eg: Code: Path.GetExtension(" file path here for each file in your folder ") im not at my own pc so i cant slap an example together unfortunatly. hope it helps.
Oct 8, 2003 #3 J jorge Well-known member Joined Jul 13, 2003 Messages 239 Location Belgium hmmz, but dont i know the filename in the folder? sind i dont know whith files are there i cant enter the full path.
hmmz, but dont i know the filename in the folder? sind i dont know whith files are there i cant enter the full path.
Oct 8, 2003 #4 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* Code: Dim Jpegs() As String Jpegs = System.IO.Directory.GetFiles("C:\wherever", "*.jpg") ListBox1.datasource = Jpegs
Code: Dim Jpegs() As String Jpegs = System.IO.Directory.GetFiles("C:\wherever", "*.jpg") ListBox1.datasource = Jpegs
Oct 8, 2003 #5 J jorge Well-known member Joined Jul 13, 2003 Messages 239 Location Belgium Thanx a lot, is there a good tutorial on systel.io ou there? edit:// is there a way to only put the file names in it? Last edited by a moderator: Oct 8, 2003
Thanx a lot, is there a good tutorial on systel.io ou there? edit:// is there a way to only put the file names in it?