• 0

Windows 7 Taskbar Progress Bar with C# and .NET


Question

Hey guys,

I've created a control that allows you to easily add the Windows 7 taskbar progress bars to .NET programs. It's all in my blog post "Windows 7 Taskbar Progress Bar with C# and .NET".

Here's the progress bar being used with wyBuild creating update patches for Nero:

post-44539-1248752693.png

Here's the progress bar being used with wyUpdate installing an update:

post-44539-1248752792.png

Also, the progress bar is completely backwards compatible:

post-44539-1248752818_thumb.png

I didn't want this post to sound too spammy, but I figured there are lots of .NET programmers on this board that might like this and there are no adverts on my blog. Also the component is completely open source (C#) with example projects in both C# and VB.NET.

Here's my article: Windows 7 Taskbar Progress Bar with C# and .NET

Tell me what you guys think.

22 answers to this question

Recommended Posts

  • 0
  todd said:
It looks great. Thanks for this! What controls are you using in this screenshot? Are they all private or publicly available?

Most of the controls are privately developed by my company, but some will be released in the near future. The only controls in the screenshot that are open source are VistaMenu and the Windows 7 Progress Bar.

I plan on releasing the tab bar on my blog in the coming months.

  • 0

If someone could do such for Firefox's Download Manager and DownThemAll! I would appreciate it greatly. The green would be normal downloading, marquee being scanning for viruses, yellow for pause, and red for failure. DTA would be the same except the marquee would be used for when it merges the pieces. Catch my drift?

  • 0
  Shunik Jan said:
If someone could do such for Firefox's Download Manager and DownThemAll! I would appreciate it greatly. The green would be normal downloading, marquee being scanning for viruses, yellow for pause, and red for failure. DTA would be the same except the marquee would be used for when it merges the pieces. Catch my drift?

Quite honestly, this will likely be done in C++ not C#. Also, the Mozilla devs aren't prowling the neowin programming forum. You'd be better off submitting a feature request directly to Mozilla.

At the very least you could mention it over at the Firefox forum: http://forums.mozillazine.org/viewforum.php?f=23

  • 0
  Vorenus said:
Quite honestly, this will likely be done in C++ not C#. Also, the Mozilla devs aren't prowling the neowin programming forum. You'd be better off submitting a feature request directly to Mozilla.

Should be submitted to Bugzilla, but I suspect that there is already an item there because I know this is one of the things on the to-do list.

In Mozilla, this has to be done in C++ and interfaced through XPCOM; should be a fairly simple and mostly trivial thing to do, actually. Once there is an interface for this in XPCOM, both the Firefox UI (as well as any extension) would be able to make use of it.

  • 0
  code.kliu.org said:
Should be submitted to Bugzilla, but I suspect that there is already an item there because I know this is one of the things on the to-do list.

In Mozilla, this has to be done in C++ and interfaced through XPCOM; should be a fairly simple and mostly trivial thing to do, actually. Once there is an interface for this in XPCOM, both the Firefox UI (as well as any extension) would be able to make use of it.

I think i heard Mozilla intending to remove XPCOM in the near future

  • 0

I agree - this is a very nice feature.

Hmm what about a blue color along with the red, green, and yellow? Then it'd fit so nicely with the Windows flag logo.

  • 0
  skynetXrules said:
I think i heard Mozilla intending to remove XPCOM in the near future

No. That was never in the plans, and wouldn't be possible because XPCOM (through XPConnect) is how JavaScript (which drives the UI) is able to access the low-level C++ Gecko internals. There has to be some sort of interface, and XPCOM actually makes quite a lot of sense here. What is being done is "deCOMtamination", which is the process by which some internal-use classes that don't need to be (and never should have been) exposed as an API are being converted from COM into regular C++ classes.

  MtDewCodeRedFreak said:
Hmm what about a blue color along with the red, green, and yellow? Then it'd fit so nicely with the Windows flag logo.

You can't specify the color. You can only specify a state, and Windows picks the color for you. It's not "here is a yellow bar that you can use if you want to indicate pause". It's "you can indicate to the system that the bar is paused, and Windows will set the color and animation appropriately, which, in this case, is yellow" (and it's not just a color change; that shiny strobe thingie will stop animating as well if you pause).

  • 0
  code.kliu.org said:
No. That was never in the plans, and wouldn't be possible because XPCOM (through XPConnect) is how JavaScript (which drives the UI) is able to access the low-level C++ Gecko internals. There has to be some sort of interface, and XPCOM actually makes quite a lot of sense here. What is being done is "deCOMtamination", which is the process by which some internal-use classes that don't need to be (and never should have been) exposed as an API are being converted from COM into regular C++ classes.

he read it here http://en.wikipedia.org/wiki/Firefox_3.6#Version_4.0

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • My home system is a 5800X (upgraded from 2700X) with a 7800 XT. I can't comment as to why you feel so strongly about the differences, but I have used both Windows 10 and 11 for literally thousands of hours each; I'd guess over 10,000 hours on Windows 10 and maybe half that on Windows 11. Earlier builds of Windows 11 had some pretty big UI lag issues, which did annoy me, but not enough to go back to Windows 10. 23H2 and forward have corrected all those issues for me and I have no complaints at all at this time. Let me clarify what I meant by "Windows 11 runs perfectly fine." I don't mean it is merely acceptable; I mean that I don't perceive a difference between it and Windows 10. I chose the word "fine" because I don't believe that either 10 or 11 are perfect in that area and both have the rare UI hiccup, but in my experience, their responsiveness is at the same level.
    • WinToUSB 9.9 by Razvan Serea WinToUSB allows you to install and run a fully-functional Windows on external hard drive, USB flash drive or Thunderbolt drive. It is so easy and efficient, with just 3 steps and a few minutes, you can create your first portable Windows 11/10/8/7 or Windows Server directly from an ISO, WIM, ESD, SWM, VHD, VHDX file or CD/DVD drive, or you can clone currently running Windows installation to USB or Thunderbolt drive as portable Windows. WinToUSB also supports creating Windows installation USB drive from Windows 11/10/8/7 and Windows Server installation ISO, with it you can install Windows from the USB drive easily. Note: The WinToUSB Free Edition is solely intended for non-commercial, private, and personal use on home computers. It should be noted that technical support is not available for the free edition. Use of WinToUSB Free Edition within any organization or for commercial purpose is strictly prohibited. WinToUSB key features include: Creation of Windows To Go from ISO, WIM, ESD, SWM, VHD(X) or DVD drive.Improved Clone Windows 11/10/8/7 to USB/Thunderbolt drive as portable Windows. Creation of Windows To Go on Non-Certified Windows To Go USB drive. Encrypt Windows To Go with BitLocker to keep your data safe. Creation of Windows installation and bootable WinPE USB drive with BIOS & UEFI support. Download Official Windows 11/10/8.1 ISO file from Microsoft. Use any edition of Windows 11/10/8/7 and Windows Server 2022/2019/2016/2012/2010 to create Windows To Go USB drive. Windows To Go (Portable Windows) Creator WinToUSB allows you to install & run fully-functional Windows on an external HDD/SSD, USB flash drive or Thunderbolt drive, which means you can carry the portable Windows drive to anywhere and use it on any computer. Faster installation and cloning speed compared to competing products Support any edition of Windows 11/10/8/7 and Windows Server Creation of Windows To Go from ISO, WIM, ESD, SWM, VHD(X) or CD/DVD drive Clone currently running Windows to USB/Thunderbolt drive Creation of Windows To Go on Non-Certified Windows To Go drive Create BitLocker encrypted Windows To Go Workspace Create portable Windows for Intel-based Mac computers Support for creating VHD(X)-based Windows To Go Windows Installation USB Creator WinToUSB releases a feature called "Windows Installation USB Creator" which allows you to create a Windows installation USB drive from a Windows 11/10/8/7/vista/2022/2019/2016/2012/2008 installation ISO file with a few simple steps, with this feature you can create a bootable Windows installation USB drive to install Windows on both Traditional BIOS and UEFI computers by using the same USB drive. Bypass Windows 11 system requirements (TPM 2.0, Secure Boot, Minimum hardware and Microsoft account) Install Windows on both BIOS and UEFI computers by using the same USB drive Windows PE Bootable USB Creator This feature allows you to create a bootable Windows PE USB drive, it can help you transfer the contents of a Windows PE ISO file to a USB drive and make the USB drive bootable, and this feature supports the creation of a bootable WinPE USB driver that supports both Traditional BIOS and UEFI computers. WinToUSB 9.9 changelog: Added option to disable BitLocker automatic drive encryption when creating Windows installation USBs Fixed bug: setup.exe cannot bypass the Windows 11 system requirements Fixed bug: Cloned Windows ARM64 cannot start properly Fix other minor bugs Download: WinToUSB 9.9.0 | 28.7 MB (Freeware) Links: Home Page | Free vs Pro Comparison | Screnshots Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Maybe you don't realize this...but everything you said agreed with me. Yes, many tech outlets reported on Ryzen 9000 issues prior to 24H2, which I already addressed, and as I already said, that issue only existed for a few short months. Ryzen 9000 was released the same quarter of 2024 as 24H2. So again...months, not years. I also already said 24H2 showed some minor improvements on older Ryzen CPU. The article you posted agrees with me, and even says the improvements were only 3-5%, which is even more petty an amount than I estimated. If you want to fuss on the 3-5% numbers, then yes, I will grant you that was an issue for an extended amount of time. In my opinion, that is such a small amount it isn't worth fussing over, but you are welcome to a different option. However, if that was your point, then you didn't make that point in good faith, because you highlighted Ryzen 9000 so much, which had a FAR bigger and FAR shorter issue, it's really a very different conversation.
    • The vast majority of users do not care which iOS version they're using. They don't even know or bother updating to the latest version, unless they see the prompt. The version numbers is more for the power users and I don't think Apple renamed their OS for them.
  • Recent Achievements

    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
    • One Year In
      Mido gaber earned a badge
      One Year In
    • One Year In
      Vladimir Migunov earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      snowy owl
      251
    3. 3
      +FloatingFatMan
      251
    4. 4
      ATLien_0
      228
    5. 5
      +Edouard
      191
  • Tell a friend

    Love Neowin? Tell a friend!