It appears that you have a C# programming question. As you have the source code, I think you'll get the best help if you ask in the developer forums, here:
http://social.msdn.microsoft.com/Forums/en-US/category/visualcsharp
When you post there, be sure to include the details of what error you get in Windows 7 and which statement in your code causes the error.