How can I assure that my particular ListBox will clear?
Posted on 1999-10-28
I am creating an application that allows one to recursively search for graphics files anywhere on a computer. The retrieved file names are added to a listbox control when they are found using the AddItem method. I've set up the Search command button to change its caption to "&Reset" as soon as the user starts a recursive search; and when he/she clicks on "&Reset," the search stops and a procedure is called to clear the listbox control's file names. Only one problem: Sometimes the list box clears, and other times it does not. I tried adding a timer control to the form with a short interval set to check for a reset, but it did nothing. Any ideas?