Deleting Files From A Listbox
Posted: Sat Mar 13, 2010 9:46 am
So I was just wondering how you do this...
I'm going to have some buttons and for each button when they are click they will add an item to the Listbox1.
The item will wither be a Directory or File Name like
C:\Program.exe
or
Program.exe
I want to be able to delete that file when the form is closing.
so let's say I have 3 items in my listbox
Program.exe
Program2.exe
Program3.exe
When my program close it will delete all those 3 files ( not from the listbox but from the computer )
I'm going to have some buttons and for each button when they are click they will add an item to the Listbox1.
The item will wither be a Directory or File Name like
C:\Program.exe
or
Program.exe
I want to be able to delete that file when the form is closing.
so let's say I have 3 items in my listbox
Program.exe
Program2.exe
Program3.exe
When my program close it will delete all those 3 files ( not from the listbox but from the computer )