Here is another article about it with some code in c#. It provides a better explanation and you may pass the code through an online converter to get its VB.Net equivalent.