tomos2 Posted May 8, 2006 Posted May 8, 2006 i have an open file dialog in which i always want to open the first file. is there anyway to select the first file every time without having to manually select it. does anyone know how to this?? thanks in advance guys!! Tomos Quote
Administrators PlausiblyDamp Posted May 8, 2006 Administrators Posted May 8, 2006 The point of an OpenFileDialog is to allow the user to browse for a file to open, if you want the user to just select a folder then you could use the FolderBrowser instead. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
tomos2 Posted May 9, 2006 Author Posted May 9, 2006 ah nice one, that's a start, at least i can target better now :D thanks. my application loads a series of .txt files and distributes the data into various files. how do i tell it to look at, say, 'file x', and once it's done with 'file x', move on to 'file y' until there are no more files of that type/extension? cheers, Tom : :confused: Quote
Administrators PlausiblyDamp Posted May 9, 2006 Administrators Posted May 9, 2006 System.IO.Directory.GetFiles(...) will return all the files in a given directory that match a wildcard. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.