There is some resource about How to write a Gadget in VS2005.
For SDK of MS Gadget, You can refer this site for more detail, or go to Gadget Blog.
下一代微軟視窗系統的相關問題