Prova a dare un occhio qui:

http://programmazione.html.it/visualbasic/faq/92.htm