Destination .NET! Platform Tools, Technologies & Resources
Get SQL Server 2008 support. www.innovateon.com

What are your future plans around SQL Server?

(Choose your top answer.)
I'm on SQL Server 2000 and will be migrating to 2008
I'm on SQL Server 2005 and will be migrating to 2008
I'm on SQL Server 2005 and will not be migrating to 2008
I'm on a version of SQL Server and will be migrating to a non-Microsoft database
I'm too confused to know what to do at this point

View Results
How to Build a .NET Solution or Project from a Command Prompt
Convert Hashtable Keys or Values into an ArrayList
Explore C# 4s New Dynamic Types and Named/Optional Parameters
Create a Syslog Sender/Receiver Using the MS Winsock Control
Generating Microsoft Office Documents with the Open XML SDK
 Print Print
Average Rating: 5/5 | Rate this item | 1 user has rated this item.

Building the DevX Destination.NET Windows® Sidebar Gadget

The new Windows® Sidebar gives users a cool way to run mini-apps on the desktop itself. In building the DevX Destination.NET gadget, Justin Whitney discovered some of the ins and outs of building a gadget. Here, he shares the process from start to finish and takes you on a guided tour through some of the trickier bits. 


More Resources
  • Watch the Video Walkthrough
  • Download the Gadget Files
  • Read the Sidebar: Developing a Windows Sidebar Gadget in Windows XP
  • Windows Vista Service Pack 1 Developer Training
  • Microsoft Visual Studio 2008 Web Seminar Series for ISV Developers
  • ISV Web Seminar: Windows Vista Certification Workshop Series
  • While Mac OSX users have had Widgets, we on the Windows® platform side have had to settle for Google Desktop. But with Windows Vista®, Windows users now have Gadgets of their own. Vista Sidebar Gadgets, as they're formally known, sit on a special section of your desktop called the Sidebar and give you access to mini-apps that can take the form of self-contained games or utilities. Most Gadgets to date are stand alone, but Gadgets can also connect to libraries deep under the hood.

    In its simplest form, a Windows Gadget looks like an HTML file. Crack open some of the gadgets that come with Windows Vista and you'll see three basic file types familiar to any Web developer: HTML, CSS, and JavaScript. While it's possible to make more complex Gadgets, when I began to design a Gadget RSS reader for DevX Destination.NET, I realized a basic Ajax-flavored Web app would provide all the functionality the Gadget really needed.

    Actually building the thing, however, was another story. In this walkthrough, I plan to highlight basic essentials most other tutorials seem to assume you already know, as well as describe some of the little gotchas I ran into. Along the way, I'll drop in a few lessons learned to make your Gadget development a bit easier.

    Sidebar Gadget: Architectural Overview
    As a developer, before I can understand a new technology I need to know exactly what's going on. What do the files look like? Where do they go? What does the system expect to see and where can I start taking liberties? If you're like me, Windows Gadgets will make more sense once you understand the architecture.

    If you're running Windows Vista, you've probably enabled your Sidebar and taken a look at some of the gadgets that come with the OS. To look at their source, find where the gadget folder is located on your install. It's usually something like C:\Program Files\Windows Sidebar\Gadgets. In this folder, you'll see several subfolders, each with a ".Gadget" extension. When you download a gadget, it's usually packaged as a compressed folder with a .gadget extension. Double-clicking such a file prompts Windows Vista to install the gadget to the Gadget Gallery that opens when you click the "+" in the Sidebar. However, putting an uncompressed folder in the Program Files directory and giving it a ".Gadget" extension also adds the gadget to the gallery, provided it includes certain files.

    Editor's Note: : If you've never seen Windows Vista or its Windows Sidebar, be sure to watch the video walkthrough of Justin's Sidebar Gadget here

      Next Page: Architectural Overview continued
    Page 1: Architectural OverviewPage 5: JavaScript Walkthrough #1: Gadget
    Page 2: Architectural Overview continuedPage 6: JavaScript Walkthrough #2: Setting
    Page 3: Architecting the RSS ReaderPage 7: Deployment, Wrap-up, Lessons Learned
    Page 4: Special Considerations for CSS 
    Log in to rate this item.
    Don't have a login? Get one now!
    Submit article to: