I want to delete a Folder that consist of .txt Files. I am trying with this code below but the member :: Delete says that it only can emty an emty folder but this folder contains .txt files.
So I wonder what other technique could be used ?
System::IO::Directory::Delete( "Path of Emty Directory" );
I based some ideas on Ancient Dragon's snippet. It stores full filenames in vector. You can replace .push_back with delete function, ot modify DisplayVector to delete files stored in vector. I can't think how to handle directory tree, it's too late.
I also hope it still works after I removed additional stuff not needed for your problem.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...