Results 1 to 4 of 4

Thread: Windows Vista Blue Progress Bars

  1. #1
    Join Date
    Aug 2009
    Posts
    18

    Windows Vista Blue Progress Bars

    I have recently install Windows Vista as my new Operating system and i have heard that it's has many add-on features, so i have decided to change Windows Vista progress bar from green to Blue, i have asked my friend about the same, he told me that it's really possible. But don't have any idea about the same. When i try to find it on internet was not able to get any solution for the same. Does anyone knows how to change the progress bar in windows Vista

  2. #2
    Join Date
    Dec 2008
    Posts
    79

    Windows Vista Blue Progress Bars

    If you want to change the progress bar in Windows Vista then you need to first right click on Aero and then goto properties , then goto security- - >Advanced - - >then click on Owner - - >now click on edit option. Now click on username and then click on apply and then yes to the warning. Now close all the windows, then right click and again goto properties- ->select security - - >then goto edit- - >then click on administrators.

  3. #3
    Join Date
    Aug 2009
    Posts
    18

    Blue Progress Bars in Vista

    Thanks for replying me i have try to follow the below steps but it's not working for me i am still able to see the same green Progress Bars, does anyone know about it if there is any coding which i have to use then that will also do for me.

  4. #4
    Join Date
    Jun 2006
    Posts
    623

    Windows Vista Blue Progress Bars

    Try yo use the following code and i am sure you will be able to change the blue progress bar.

    Code:
    public partial class VistaProgressBar : UserControl
    {
      Color _border = Color.FromArgb(178, 178, 178);
      Color _backRemain1 = Color.FromArgb(200, 200, 200);
      Color _backRemain2 = Color.FromArgb(236, 236, 236);
      Color _backRemain3 = Color.FromArgb(218, 218, 218);
      Color _backRemain4 = Color.FromArgb(242, 242, 242);
    
      Color _backActive1 = Color.FromArgb(180, 0, 0);
      Color _backActive2 = Color.FromArgb(252, 0, 0);
      Color _backActive3 = Color.FromArgb(255, 127, 127);
      Color _backActive4 = Color.FromArgb(255, 205, 205);
    
      float _value = 50.0F;
      [Browsable(true)]
      public float Value
      {
        get { return _value; }
        set
        {
          if (_value > 100.0F) _value = 100.0F;
          if (_value < 1.0F) _value = 1.0F;
          _value = value;
          Invalidate();
        }
      }
    
      VistaProgressBarTheme _theme 
        = VistaProgressBarTheme.Default;
      [Browsable(true)]
      public VistaProgressBarTheme Theme
      {
        get { return _theme; }
        set
        {
          _theme = value;
          CalculateThems();
          Invalidate();
        }
      }
    
      public VistaProgressBar()
      {
        this.SetStyle(ControlStyles.DoubleBuffer, true);
        this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
        this.SetStyle(ControlStyles.ResizeRedraw, true);
        this.SetStyle(ControlStyles.UserPaint, true);
        this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
        InitializeComponent();
        this.BackColor = Color.Transparent;
        CalculateThems();
      }
    
      protected override void OnPaintBackground(PaintEventArgs e)
      {
        base.OnPaintBackground(e);
    
        Rectangle rectUpper = new Rectangle(0, 0, 
            this.Width, this.Height / 2 + 2);
        Rectangle rectLower = new Rectangle(0, this.Height / 2, 
            this.Width, this.Height - (this.Height / 2));
    
        GraphicsPath pathLower = OwfGraphics.GetRoundPath(rectLower, 2);
        GraphicsPath pathUpper = OwfGraphics.GetRoundPath(rectUpper, 2);
    
        using (Brush brushUpper = new LinearGradientBrush(rectUpper, 
            _backRemain4, _backRemain3, LinearGradientMode.Vertical))
        {
          e.Graphics.FillPath(brushUpper, pathUpper);
        }
    
        using (Brush brushLower = new LinearGradientBrush(rectLower, 
            _backRemain1, _backRemain2, LinearGradientMode.Vertical))
        {
          e.Graphics.FillPath(brushLower, pathLower);
        }
      }
    
      private void VistaProgressBar_Paint(object sender, 
            PaintEventArgs e)
      {
        float width = (((float)this.Width - 2) * _value) / 100.0F;
    
        Rectangle rectFull = new Rectangle(0, 0, this.Width - 1, 
            this.Height - 1);
        GraphicsPath pathFull = OwfGraphics.GetRoundPath(rectFull, 2);
    
        Rectangle rectUpper = new Rectangle(1, 1, (int)width, 
            this.Height / 2 + 1);
        GraphicsPath pathUpper = OwfGraphics.GetRoundPath(rectUpper, 1);
    
        Rectangle rectLower = new Rectangle(1, this.Height / 2, 
            (int)width, this.Height - (this.Height / 2) - 1);
        GraphicsPath pathLower = OwfGraphics.GetRoundPath(rectLower, 1);
    
        using (Brush brushUpper = new LinearGradientBrush(rectUpper, 
            _backActive4, _backActive3, LinearGradientMode.Vertical))
        {
          e.Graphics.FillPath(brushUpper, pathUpper);
        }
    
        using (Brush brushLower = new LinearGradientBrush(rectLower, 
            _backActive1, _backActive2, LinearGradientMode.Vertical))
        {
          e.Graphics.FillPath(brushLower, pathLower);
        }
    
        using (Pen pen = new Pen(_border))
        {
          e.Graphics.DrawPath(pen, pathFull);
        }
      }
    
      void CalculateThems()
      {
        switch (_theme)
        {
          case VistaProgressBarTheme.Red:
            _backActive1 = Color.FromArgb(180, 0, 0);
            _backActive2 = Color.FromArgb(252, 0, 0);
            _backActive3 = Color.FromArgb(255, 127, 127);
            _backActive4 = Color.FromArgb(255, 205, 205);
            break;
    
          case VistaProgressBarTheme.Default:
          case VistaProgressBarTheme.Green:
            _backActive1 = Color.FromArgb(12, 182, 20);
            _backActive2 = Color.FromArgb(55, 217, 60);
            _backActive3 = Color.FromArgb(117, 226, 119);
            _backActive4 = Color.FromArgb(171, 237, 171);
            break;
    
          case VistaProgressBarTheme.Blue:
            _backActive1 = Color.FromArgb(8, 49, 216);
            _backActive2 = Color.FromArgb(22, 106, 238);
            _backActive3 = Color.FromArgb(102, 171, 255);
            _backActive4 = Color.FromArgb(140, 192, 255);
            break;
        }
      }
    }

Similar Threads

  1. Summary progress bars in Gantt view don't match % complete
    By mbbackus in forum Microsoft Project
    Replies: 1
    Last Post: 27-10-2011, 02:25 PM
  2. How to Use Progress Bars in Java?
    By The Recruiter in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 06:15 AM
  3. Fixing the Windows Vista Blue Screen
    By mgruichjr in forum Operating Systems
    Replies: 1
    Last Post: 28-04-2008, 08:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,854,650.25551 seconds with 17 queries