Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.Net] Adding JumpListItems to your application [Win7]
#1
Hello,

Okay so as you know I fooled around with the new WindowsAPI dll.s.

[Image: 1306145749-10.png]

The .dll's: http://www.multiupload.com/FDKNSPL53Y

Step 1
Add the .dll's as reference.

Step 2
Import the following elements: Microsoft.WindowsAPICodePack.Taskbar and Microsoft.WindowsAPICodePack.Shell

Step 3
Next, add a new 'JumpList'

Code:
Dim j As JumpList = JumpList.CreateJumpList()

Step 4
Now lets add a few programs:

Code:
Dim cat_1 As New JumpListCustomCategory("Editors")
  cat_1.AddJumpListItems(New JumpListLink("mspaint.exe", "Paint") With {.IconReference = New IconReference("mspaint.exe", 0)})
  cat_1.AddJumpListItems(New JumpListLink("notepad.exe", "Notepad") With {.IconReference = New IconReference("notepad.exe", 0)})
  j.AddCustomCategories(cat_1)

This will add two programs (Notepad and Paint) credits to Helmy.m for the IconReference thing.

Step 5
You can also add sites:

Code:
Dim cat_2 As New JumpListCustomCategory("Websites")
  cat_2.AddJumpListItems(New JumpListLink("http://www.hackforums.net/", "HackForums"))
  cat_2.AddJumpListItems(New JumpListLink("http://www.donate-me.com/", "Donate"))
  j.AddCustomCategories(cat_2)

Step 6
When you run it, you will notice it doesn't work. This is because we have to refresh the JumpList.

Code:
j.Refresh()

You can remove them by doing:
Code:
j.ClearAllUserTasks()

NOTE: Where I type in the website and the exe's you can also enter a path to a specific program.

EnjoyPirate!
Reply
#2
Thanks, I needed this!
Can you make this start when a program starts?

Inventor1

Reply
#3
(06-04-2011, 09:16 AM)Inventor1 Wrote: Thanks, I needed this!
Can you make this start when a program starts?

Inventor1

Yes, just put in it Form#.Load
Reply
#4
Thanks!

Inventor1
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Application Organiser lhcrulz 3 2,450 02-11-2012, 08:56 PM
Last Post: AceInfinity
  [PREVIEW] updatr - Easy Application Updater Virtuous 9 4,017 11-21-2011, 11:05 AM
Last Post: Virtuous
  [Vb.net] How To Make Your vb.net application nice loocking. [TUT] CodingWorm 3 5,988 10-14-2011, 01:31 AM
Last Post: Digital-Punk
  [VB.NET] - Integrate Flash Into Your Application - [TUT] Fragma 14 6,084 10-12-2011, 03:16 AM
Last Post: Philippines
  cegonsoft india | Learn console application In Dot net | Vb.net MikeHenery9 0 2,250 09-09-2011, 04:01 AM
Last Post: MikeHenery9

Forum Jump:


Users browsing this thread: 1 Guest(s)