Code:Private Sub mnuFileList_Click(Index As Integer)
If Index = 1 Then
Kill App.Path & "/Data.txt"
CommonDialog1.ShowOpen
Picture1.Picture = LoadPicture(CommonDialog1.FileName)
End If
End Sub
i want the program always kill file "data.txt" when press the menu if the "data.txt" is present.
But, i got the error "file not found"(because data.txt not present) with the code above. How to improve the code above to let it kill file when the data.txt is present.
