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
#2
Pretty nice, always needed this! Thanks mate Smile
Reply
#3
(06-03-2011, 10:10 AM)Wolf Wrote: Pretty nice, always needed this! Thanks mate Smile

Thanks, welcome to SupportForums btw.
Reply
#4
That's pretty nice man, thanks. I might start learning VB.net

Quick question, can you change the colours?
Yeah, simple. I've got a hundred thousand on me I could sprinkle!

Tiny Tempah ;)
Reply
#5
(06-04-2011, 04:53 AM)Richie Wrote: That's pretty nice man, thanks. I might start learning VB.net

Quick question, can you change the colours?

Yes:

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

So use ProgressState.<green/red/yellow>

There might be more, I just went to 12 then I found it enough Roflmao
Reply
#6
Thanks, I have been wanting this.

Inventor1
Reply
#7
This is actually quite a nice release, I've always wondered how Google Chrome produced such a cool loading bar! I'll defiantly +1 you if I had the ability, thanks for share!
[Image: signaturera.png]
Reply
#8
(06-04-2011, 08:54 AM)Laughynose Wrote: This is actually quite a nice release, I've always wondered how Google Chrome produced such a cool loading bar! I'll defiantly +1 you if I had the ability, thanks for share!

Thanks, no problem man! You have 9 posts to go Tongue gogo.

(06-04-2011, 08:53 AM)Inventor1 Wrote: Thanks, I have been wanting this.

Inventor1

Thanks for replying.
Reply
#9
Cool mate! going to use this in my progress bar applications!
Reply
#10
This is pretty cool thanks a lot.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)