I used this and it seemed to help.
http://www.bizsupportonline.net/blog/2009/03/programmatically-retrieve-selected-items-multiple-selection-list-box-infopath/
Use this URL to convert the C++ to VB.NET
http://www.developerfusion.com/tools/convert/csharp-to-vb/
Hope this helps.