![]() Programmatically create a new button, with the name of the file or directory as the button’s text. In a for-loop, isolate the name from the rest of the filepath. Back in the DisplayFiles() function, create a button for each directory and file.Declare the global variable at the top of the class.Store the current directory in a global variable.Make sure the panel that displays the list of files and directories is empty.string filesList = Directory.GetDirectories(filePath).Concat(Directory.GetFiles(filePath)).ToArray() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |