Closing forms on the web client
As you are coding your Visual Studio Tools integration, it's important to watch how you close forms you created. Always use the Close() method on the form class to close the form. This method will send the appropriate messages between the web client and server, and allow the form to be properly garbage-collected by the .NET runtime.
Don't use methods like Dispose() to close a form in your integration, because you will likely encounter errors in the web client. This happens because the form is garbage-collected but the web client runtime engine doesn't know that the form has been closed.