On Jan 18, 2007, at 15:35 UTC, Emile SCHWARZ wrote:

> how can I be sure the user does not tricks my application ? [moves a
> folder on my back?]

I think you mean "behind your back."  :)  I think you'll need to use a
Timer here to periodically compare the actual folder contents against
what's in your listbox.  A period of a few seconds should be
sufficient.  It'll still be possible that a user could change something
on disk, and then very quickly select a file in your app that doesn't
exist, so you should be prepared for that case.  But typically, users
aren't that fast, and they'll be pleasantly surprised when they see
your app notice the change, even after a second or two.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to