jorge Posted October 8, 2003 Posted October 8, 2003 hey, how can i list all jpeg file in a perticular folder? The filelistbox from vb6 is gone in vb.net(2003) greets Quote Jorge - http://www.blackdot.be/?page=apache.htm
Leaders dynamic_sysop Posted October 8, 2003 Leaders Posted October 8, 2003 you can use the GetExtension property, eg: Path.GetExtension(" file path here for each file in your folder ") i'm not at my own pc so i cant slap an example together unfortunatly. hope it helps. Quote
jorge Posted October 8, 2003 Author Posted October 8, 2003 hmmz, but dont i know the filename in the folder? sind i don't know whith files are there i can't enter the full path. Quote Jorge - http://www.blackdot.be/?page=apache.htm
Administrators PlausiblyDamp Posted October 8, 2003 Administrators Posted October 8, 2003 Dim Jpegs() As String Jpegs = System.IO.Directory.GetFiles("C:\wherever", "*.jpg") ListBox1.datasource = Jpegs Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jorge Posted October 8, 2003 Author Posted October 8, 2003 (edited) 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? Edited October 8, 2003 by jorge Quote Jorge - http://www.blackdot.be/?page=apache.htm
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.