If you want to use Settings, then it's really easy...
In fact, here's a link to something I wrote a number of years ago.
http://www.vbforums.com/showthread.p...ighlight=trial

It's simple, basic, probably could use a lot of work to beef it up some... but there it is.

-tg