I'm in need of a piece of VB code which is able to calculate the shortest path between 2 points on a grid.

A good and easy way would be to have 8 paths go one step from the starting point in all directions. Next each path should detect which points next to it are not yet 'explored' and should then continue in those directions, etc. until it has come across the target. This should be a good way to get around obstacles.

Does anybody know where I can get a small program doing something like this? It would really come in handy.

Thanks!

Musashimaru