This has been discussed many times here in General VB- do a search and you should find a few threads.