I've spent a bit of time building a SideBar gadget recently and had a lot of fun doing it. I thought it might be worth sharing some of the stuff I learned along the way by building out a gadget that does something. Maybe not something useful but something more than print my machine name or the like. Ahem.
I suggest you start by downloading the Vista Sidebar Gadget project template for Visual Studio that Tim Heuer created. Once you've got that installed you'll get a new template under File -> New Web Site (I'm running Visual Studio 2008 Beta 2 so the dialogue below may not be identical to yours):
Create a new Vista Sidebar Gadget project and you'll get a solution that looks like the below:
Have a look in the README.txt file, it contains a lot of useful information to get started. Of note to us:
Now you've created the skeleton of a gadget, save it somewhere.
It wont be pretty but you should have a functional gadget on your Sidebar. Click the Flyout button and a flyout will appear. Drag it from the Sidebar and it will undock. Drag it back and it will dock. Click the settings icon (hover over the gadget) and you'll see a settings pane appear.
Clearly we've got a bit of work to do but it's not a bad start. Next up we need to add some HTML and CSS to pretty things up and then add some code to make it do something useful.
There is a useful walkthrough on the MSDN site entitled "Gadget Development Overview"
PingBack from http://msdnrss.thecoderblogs.com/2007/08/24/so-you-want-to-build-a-vista-sidebar-gadget/
I've added some functionality to the gadget we've been building in part 1 and part 2 but I think
Last month I did a webcast on Vista Sidebar Gadgets and how you can use them to extend the reach of your