ComponentOne Windows 7 Control Pack for WinForms
Working with Windows 7 Control Pack for WinForms / Working with C1TaskbarButton / Jump List Elements / C1JumpTask Basics
In This Topic
    C1JumpTask Basics
    In This Topic

    A jump task, which is represented by the C1JumpTask class, is a shortcut to an application. Anything labeled as a C1JumpTask will appear underneath the Tasks category.

    Jump tasks are similar to jump links, only users jump tasks cannot remove jump tasks from the jump list, nor can they pin a jump task to the taskbar.


    To specify the path to the .exe file you wish to link to, just set the ApplicationPath property.

    A jump task can be easily customized by setting a few properties. You can set the Title property to give your link a title, and you can set the IconPath and IconIndex properties to change the icon associated with the jump task. Without a title, the jump task won't appear in the jump list. However, C1JumpLink will use the application's default .ico file (if it has one) if you don't set the icon properties. C1JumpLink also has a CustomCategory property that allows you to group links together under headings.

    You can pass arguments to any jump task by setting the Arguments property. For example, you can use the Arguments property to open a file in Notepad, such as in the following example:


    In the above example, the Note.txt file resides in the working directory, C:\Users\karaj\Documents\. If you don't specify your own directory via the WorkingDirectory property, the working directory is assumed to be the directory that the running application resides in.