In order to get access to .Net code samples I would recommend the usage All-In-One Code Framework application available for download on Codeplex. Below you can see the the installation result:
The benefits of using All-In-One Code Framework are:
- common place to find code samples that use .Net technologies
- filtered search
- once a sample has been downloaded, it can be opened with Visual Studio directly from the All-In-One Code Framework application
By the way, the technology used by Microsoft to create the installer for this application is ClickOnce.