Jump paths are links from the jump list to a specified file. Please note that your application has to have the file type of this link registered, otherwise Jump Paths will simply not appear on the jump list.
Complete the following steps:
OR
The following code creates one C1JumpPath and adds it to the jump list:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim C1JumpPath1 As New C1JumpPath() C1TaskbarButton1.JumpList.Items.Add(C1JumpPath1) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpPath c1JumpPath1 = new C1JumpPath(); c1TaskbarButton1.JumpList.Items.Add(c1JumpPath1); |
If you'd like to add a range of C1JumpPaths to the jump list, you can use the AddRange method instead, like this:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim C1JumpPath1 As New C1JumpPath() Dim C1JumpPath2 As New C1JumpPath() C1TaskbarButton1.JumpList.Items.AddRange(New C1.Win.C1Win7Pack.C1JumpPath() {C1JumpPath1, C1JumpPath2}) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpPath C1JumpPath1 = new C1JumpPath();C1JumpPath C1JumpPath2 = new C1JumpPath(); c1TaskbarButton1.JumpList.Items.AddRange(new C1.Win.C1Win7Pack.C1JumpPath[] { C1JumpPath1, C1JumpPath2}); |