Thank you for your tutorials on DNN!
Like emaynard, "Everything is fine up until the part where it tries to switch focus and then I get the hresult error" (invalid arg error) due to the following line:
DTE.ActiveWindow.Object.GetItem(myprojectname).Select(vsUISelectionType.vsUISelectionTypeSelect)
However I followed the instructions very closely. Even in Test_002, I selected AssemblyInfo.vb in the Solution Explorer, ran Test_002, and got the hresult error. The selected item did not change focus ...
myprojectname is evaluated to my project directory, equal to the first line in the Solution Explorer
DTE.ActiveWindow.Object evaluates to {System.__ComObject}
The trouble seems to be the GetItem method not defined.
I'm using Visual Web Developer 2005, Version 8.0.50727.42 on .NET 2.0.50727.
Any help ? 
Any work around? maybe some "help" by preselecting the project with the mouse?