Refresh ProgressBar

This is a discussion on Refresh ProgressBar within the C# Programming forums, part of the General Programming Boards category; Hi, I'm trying to experiment alittle with C#, I'm new to it. I'd like to know how to refresh a ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    8

    Refresh ProgressBar

    Hi, I'm trying to experiment alittle with C#, I'm new to it.

    I'd like to know how to refresh a progress bar so the "ugly blue boxes" arn't still hanging around after a file has loaded. Is there a way to refresh the progress bar?

    Something like -> progressBar1.Refresh();

    Thanks

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    What do you mean by "hanging around" ? You can clear the ProgressBar by setting the Value to MinValue.

    If you need to refresh it because it doesn't redraw itself properly, you can use Invalidate and Update.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    8
    Yes I meant "Refresh" or redraw the control. Thank you for the reply. I figured it out.


    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. progressbar
    By munna_dude in forum C Programming
    Replies: 8
    Last Post: 06-21-2007, 06:17 AM
  2. ListView Refresh, Update
    By de4th in forum C++ Programming
    Replies: 1
    Last Post: 12-23-2006, 08:13 AM
  3. Monitor Refresh Rates
    By SlyMaelstrom in forum Tech Board
    Replies: 4
    Last Post: 05-24-2006, 01:08 PM
  4. curses problem
    By rajesh23 in forum Linux Programming
    Replies: 2
    Last Post: 10-07-2003, 07:27 AM
  5. Progressbar as Part of Statusbar :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-26-2002, 08:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21