Leggi questo articolo:
http://programmazione.html.it/visualbasic/faq/80.htm

Se non è chiaro, chiedi. Ciao