06-03-2011, 08:50 AM
Hello,
Google Chrome is using it to, thats why I found it interesting when I saw it.
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:
Step 4
Create a button, timer, thread or what ever you want it to do, and use the following code.
or, if you want to use the dll's Enum:
Step 5
You can simple make the value of the progress bar go up by doing:
You can check if the user's OS is supported by doing:
Enjoy!
Google Chrome is using it to, thats why I found it interesting when I saw it.
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!