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:
OR
In Code
The following code creates one C1JumpTask and adds it to the jump list.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim c1JumpTask1 As New C1JumpTask() c1TaskbarButton1.JumpList.Tasks.Add(c1JumpTask1) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpTask c1JumpTask1 = new C1JumpTask(); c1TaskbarButton1.JumpList.Tasks.Add(c1JumpTask1); |
If you'd like to add a range of C1JumpTasks to the jump list, you can use the AddRange method instead, like this:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim C1JumpTask1 As New C1JumpTask() Dim C1JumpTask2 As New C1JumpTask() C1TaskbarButton1.JumpList.Tasks.AddRange(New C1.Win.C1Win7Pack.C1JumpTask() {C1JumpTask1, C1JumpTask2}) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpTask c1JumpTask1 = new C1JumpTask(); C1JumpTask c1JumpTask2 = new C1JumpTask(); c1TaskbarButton1.JumpList.Tasks.AddRange(new C1.Win.C1Win7Pack.C1JumpTask[]{c1JumpTask1, c1JumpTask2}); |