Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.Net] Progress bar in the icon in the taskbar [Win7]
#1
Hello,

Google Chrome is using it to, thats why I found it interesting when I saw it.

[Image: 13060742500.png]

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

Step 1
Add the .dll's as reference.

Step 2
Import the following element: Microsoft.WindowsAPICodePack.Taskbar

Step 3
I'm using it on colors, but the dll comes with a standard Enum this is mine:

Code:
Enum ProgressState
  Green = 0
  Red = 4
  Yellow = 8
    End Enum

Step 4
Create a button, timer, thread or what ever you want it to do, and use the following code.

Code:
TaskbarManager.Instance.SetProgressState(ProgressState.Green)

or, if you want to use the dll's Enum:
Code:
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress)

Step 5
You can simple make the value of the progress bar go up by doing:

Code:
TaskbarManager.Instance.SetProgressValue(Value, MaxValue)

You can check if the user's OS is supported by doing:

Code:
If TaskbarManager.IsPlatformSupported Then
    'Do new stuff here
  End If

Enjoy! Pirate
Reply


Messages In This Thread
[VB.Net] Progress bar in the icon in the taskbar [Win7] - by The-One - 06-03-2011, 08:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.NET] Advance Icon Changer BlackSpider 17 9,770 11-25-2012, 10:41 PM
Last Post: ƃu∀ ıʞƃu∀
  SF Coders - Icon Changer - Project 1 Arron XR 14 4,511 09-11-2012, 08:20 PM
Last Post: malis2007
  Icon Websites? (Looking for Icons for Programs) AceInfinity 14 5,255 09-08-2012, 04:20 PM
Last Post: spesificrelax
  Knuckles: TLF Breaker [Game in Progress] AceInfinity 18 3,669 05-15-2012, 06:14 PM
Last Post: OnyxDev
  Icon Injector Class Zombot 2 2,004 11-16-2011, 06:29 AM
Last Post: TalishHF

Forum Jump:


Users browsing this thread: 1 Guest(s)