I'm playing around with Visual Basic code to generate Sudoku puzzles, the code was originally written for the .Net 2.0 Framework and it works correctly there. I'm building my version as a Visual Studio 2010 project using the .Net 4.0 Framework. The only problem I've ran into are the 2 warnings about "unused variable" as shown in the screenshot. When I run the application this portion of the code will not work correctly and the board will not initialize.
Why can't .Net 4.0 compile this correctly?
I'm quite new at VB and .Net programming so if this is a dumb question I apologize in advance.
Thanks for any help you might give.