Search code examples
windows.net-2.0sidebarwindows-desktop-gadgets

How can Windows Sidebar Gadget communicate with my desktop app?


I've got a .NET 2.0 Windows desktop application (time-sheets) which i develop and wanted to add a Gadget interface to it (so that app runs hidden and is controlled via the gadget).

What is the easiest way to get my gadget to communicate to my app?

An idea that i had was to have a built-in web server inside the app, and the gadget controls communicates with the app using ajax. However i'm hoping there's a simpler solution.


Solution

  • You didn't specify what technology the gadget and app were written with, so it's hard to answer. Assuming you can use .NET, WCF with a named-pipes binding would be very simple. Just a few lines of code to set it up.