views:

81

answers:

3

I think that is what this is called: http://img163.imageshack.us/img163/9234/13016288.png

I want to be able to add stuff like that to my program. Such as an open button and other buttons that would execute a method within the app. This is in C#, by the way.

I DID look into the Windows 7 API Code Pack, but it.. doesn't work the way I want. It won't let me execute a method inside my app like I want. It just lets you open other apps: http://windowsteamblog.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/developers/image_5F00_688713DB.png

So is something like this possible?

A: 

This article might be helpful: Task Manager

Yogesh
+1  A: 

I think its you who doesnt understand how JumpLists work. "It just lets you open other apps" Is exactly what it does, nothing else. Thats Windows 7 feature, not API Code Pack limitation. Key point to this is fact, that your application is not running, so WHERE it should execute your method? Correct implementation would be to make your JumpList run your application with correct parameters and then inside your application Main method invoke different methods depending on those parameters. Dont forget, even window applications have input parameters, just like console apps.

Euphoric
Thanks for the info!
Eaton
A: 

If you look at Outlook and Messenger, they invoke other commands within the app, so you know it is possible. But as @Euphoric says, the architecture of jumplists is really simple - choosing a destination (eg a file name or URL) results in Windows launching another instance of the app and passing that destination as a command line argument. Choosing a task results in Windows launching that task, which needs to be some other exe.

How to resolve this seeming paradox? The other exe is a helper exe that communicates with the main app. Examples of this are in short supply but I am working on a demo for an early November talk, and will blog it when I have it done. Perhaps this architectural pointer will get you started.

Kate Gregory