I have a directory that contains files and I wish to allow the user to delete them but would it be possible to display a message while the files are bieng deleted because otherwise it looks as if my program has locked up.
this is the code I'm using for deleting files. Also when the button is clicked to browse to the folder it doesnt always select the correct on. i.e if I have been in another folder it goes straight to that one. any suggestions.
Thanks
R
VB Code:
Private Sub Command5_Click()
Dim strFile() As String, strPath As String
Dim n As Long, nCount As Long
On Error Resume Next
With CommonDialog1
.Flags = cdlOFNAllowMultiselect Or cdlOFNExplorer Or cdlOFNLongNames
You can use the same code as you did with your play list. Update a ProgressBar in the loop, or just change the Caption of a Label showing the file name of the file that is being deleted.
After adding many files and the button to write the xml file is clicked it seems to lock up the other command buttons. Do I need something in this code to Kill it or something?.
VB Code:
Private Sub Command2_Click()
Dim f1 As Integer, xmlpath As String, songpath As String, mp3path As String, f2 As Integer, i As Integer, pos As Integer
Dim Artist As String, SongName As String, artname As String, fname As String, MyPath As String
For your origional post in this thread you can use the following approach if you like. Download the attached Form and add it to your project and use code simular to this:
VB Code:
Private Sub Command5_Click()
Dim strFile() As String, strPath As String
Dim n As Long, nCount As Long
Dim dlg As frmProgress
On Error Resume Next
With CommonDialog1
.Flags = cdlOFNAllowMultiselect Or cdlOFNExplorer Or cdlOFNLongNames
that wo9rks great but as soon as I click the update xml button it locks everything up - is there anyway I could display something like the egg timer until it is finished - because when its finished processing it should then stop and the other buttons should work shouldn't they or am I totally wrong as usual?