Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB/C#] Tray Controller | Basic WinAPICodePack Wrapper

This thread was originally a tutorial on how to achieve a progress bar in the icon similar to Google Chrome and new installers, but I decided to revisit it and wrap everything up nicely, ready for direct transfer to your clipboard. :P

The WindowsAPICodePack is filled with handy little improvements for your program including thumbnail buttons and task lists. I intend to develop this to a full wrapper later, but this will do for now.

Currently, the wrapper supports every aspect of the tray progress bar. Including, value, maximum, color (red, amber, green), and style (progress, marquee, none). There's also support for overlay icons.

Demonstration: (Click to View)

Downloads:
WindowsAPICodePack: http://www.mediafire.com/download/4c3vsy...dePack.rar
VB.NET: https://gist.github.com/oduslabs/a26de1c510e7d58b5c8e
C#: https://gist.github.com/oduslabs/e28f42eba21ba351c879
omg thank you for this, this might seem crazy but I was thinking about how to do that in VB.net just a few days ago.. kinda scary but im happy at the same time I guess 🤝
Yeah this is nice, I was playing around with the API as well, there are a lot of cool features that are "hidden"from visual studio.
Decided to go back over this today and create a little wrapper for it which I will expand on later. This was for a project I've been asked to create and thought I'd share a more convenient version. Enjoy!
Nice release Odus. He's been showing me this Skype for a while now. :P

[Image: 1zL3pDG.jpg]

Good job Odus! (y) I like it!
(May 25, 2015 10:11 PM)xadamxk Wrote:  Holy crap, that's pretty cool.
I wonder if you can implement this into console applications.... >:D

There's no reason you couldn't. Just reference Microsoft.WindowsAPICodePack.Taskbar.

[Image: 1zL3pDG.jpg]

This is going to def. come in handy for me I'm sure ;) Thanks for this... HUGE help!
In case you don't want a to add it as a .dll

Mavamaarten~ win 7 no dll

EDIT: What happend to the WindowsAPICodePack? It used to be freely available by MS now they seem to have buried it, It's only because some developers re-uploaded it to nuget its on there.. looks like some of the original source is still on github

Well here is the original MS page for it...

seems rather empty now.... wtf? i just can't believe they buried it like that...

some more info here
(May 25, 2015 11:47 PM)sweetysuckscock Wrote:  -snip

Pesky Mava, I thought I was the first to do this here on HF. D:

My guess is that MS either wants it for themselves or are planning to bolt it on to the .NET framework. Personally hoping it's the latter.
Ah this is so sexy. Can I please suck your dick?
hi, whats the code in trackbar ?
(Jul 2, 2015 03:05 PM)MrHacker.Pcsq Wrote:  hi, whats the code in trackbar ?

Very simple, a case of setting the Value property to the TrackBar's value in the ValueChanged event. Example:

Declaration
Code
Private _tpb As New TrayProgressBar

Usage
Code
Private Sub TrackBar1_Scroll(sender As Object, e As EventArgs) Handles TrackBar1.Scroll
    _tpb.Value = TrackBar1.Value
End Sub
It would be cool if you could instead of making it go left to right, make it go bottom to top.
Nice was looking for something like this, Thanks Odus :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by NullSystemDec 2, 2019 08:43 AM 1 237 Dec 2, 2019 08:43 AM
Last Post: HFDone
[C#] by JUSTINJun 8, 2019 07:39 PM 28 1,004 Jun 8, 2019 07:39 PM
Last Post: doxerhacker
[Python] by VassiliosMar 30, 2019 07:33 AM 3 200 Mar 30, 2019 07:33 AM
Last Post: authorSS