We found a very nice VB6 sample, that allows two opponents to play battleship from two different computers, even across the Internet. The program consists of a server portion and a client portion, and the two use the Winsock control to communicate. The VB6 code uses also a lot of graphic statements to implement a nice user interface.

Thanks to VB Migration Partner, it took us only a few minutes and some pragmas to convert this game to VB.NET.

You can find the result in our Code Sample section. Enjoy!