Try this one that I posted a long time ago. It might not work with the latest versions of Visual Studio and NI Vision, but maybe you can fix that by replacing the references with new ones (see notes in main source file).
"http://sine.ni.com/niforum/niforum?requireLogin=False&forumDU=http://forums.ni.com/ni/board/message?board.id=200&message.id=19007#M19007"