5

When loading something such as a software update in Windows 7 there is often an oscillating green glow effect in a horizontal bar. Is this a standard control that can be utilized in C#? If not, how can it be incorporated into a C# app.?

N West
  • 6,768
  • 25
  • 40
Andy
  • 157
  • 10

2 Answers2

4

This control is called ProgressBar.

If you are using WPF the property IsIndeterminate has to be set to true to have a "running green glow".

Fischermaen
  • 12,238
  • 2
  • 39
  • 56
  • So I guess that this is a WPF feature and not available in the dot net 4 framework progress bar under c#? – Andy Nov 13 '11 at 15:33
  • @Andy You can have a `ProgressBar` control both in WPF and WinForms. Both UI technologies are provided in .NET framework 4. It's your decision which of those technics you will use to build your user interface. – Fischermaen Nov 13 '11 at 15:35
  • I think that you answered my question nicely :) – Andy Nov 13 '11 at 15:39
0

You can implemented this using BackgroundWorker to update a progress bar ("the green glowing horizontal bar), and the same time keep the application main thread responsive. See this SO post, or google around BackgroundWorker + Progress bar.

Community
  • 1
  • 1
KMC
  • 19,548
  • 58
  • 164
  • 253
  • 1
    But this isn't necessary when using ProgressBar control in WPF! – Fischermaen Nov 13 '11 at 16:02
  • I was interested in how to implement the visual green glow effect. The BackgroundWorker is standard stuff to handle code that takes an indeterminate time to complete without freezing the app. and having the ability to report progress. I am using the ProgressPercentage value with enums to display text messages in the status bar about what has happened so far. – Andy Nov 15 '11 at 13:42