# Adding Jump Tasks

## Content



A jump task is a link from the taskbar's jump list to an application. A jump task can be added to the jump list at design time through a collection editor or dynamically at run time.

In the Designer

Complete the following steps:

1.  Open the **C1JumpList.Tasks Collection Editor** in one of the following ways:
    *   Click the [C1TaskbarButton](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskbarButton.html)s smart tag to open the **C1TaskbarButton Tasks Menu** and select **Edit Jump Tasks**.
        
        OR
        
    *   In the **Properties** window, expand the [JumpList](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskbarButton.JumpList.html) node and then, next to Tasks, click the ellipses button.
2.  In the **C1JumpList.Tasks Collection Editor**, click **Add** to add a jump task. You can set the task's properties in the properties grid.

In Code

The following code creates one [C1JumpTask](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1JumpTask.html) and adds it to the jump list.

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Dim c1JumpTask1 As New C1JumpTask()
c1TaskbarButton1.JumpList.Tasks.Add(c1JumpTask1)
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
C1JumpTask c1JumpTask1 = new C1JumpTask();
c1TaskbarButton1.JumpList.Tasks.Add(c1JumpTask1);
```

DOC-DETAILS-TAG-CLOSE

If you'd like to add a range of C1JumpTasks to the jump list, you can use the [AddRange](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.CustomButtonCollection.AddRange.html) method instead, like this:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Dim C1JumpTask1 As New C1JumpTask()
Dim C1JumpTask2 As New C1JumpTask()
C1TaskbarButton1.JumpList.Tasks.AddRange(New C1.Win.C1Win7Pack.C1JumpTask() {C1JumpTask1, C1JumpTask2})
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
C1JumpTask c1JumpTask1 = new C1JumpTask();
C1JumpTask c1JumpTask2 = new C1JumpTask();
c1TaskbarButton1.JumpList.Tasks.AddRange(new C1.Win.C1Win7Pack.C1JumpTask[]{c1JumpTask1, c1JumpTask2});
```

DOC-DETAILS-TAG-CLOSE