Results 1 to 7 of 7

Thread: [c# newb] how do you use progress bars?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    long island, new york
    Posts
    32

    [c# newb] how do you use progress bars?

    i think the title says it all. i am by no means advanced in c#. in fact, im a total noob. can someone teach me about progress bars or refer me to a place that talks about them in easy-to-understand terms? thank you all in advance.

  2. #2
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    Is that something you are looking for?
    First you need to set a MaximumValue of the bar, and then set its value to 0. You cann then add "bars" to it using

    Code:
    progressBar.Value = progressBar.Value +1;
    oh and heres a lot more bout Progressbars.

    http://www.c-sharpcorner.com/1/pbar.asp

    HTH, Stephan
    Last edited by Sgt-Peppa; Nov 21st, 2003 at 03:14 AM.
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    long island, new york
    Posts
    32
    THANKS!

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Originally posted by Sgt-Peppa
    Is that something you are looking for?
    First you need to set a MaximumValue of the bar, and then set its value to 0. You cann then add "bars" to it using

    Code:
    progressBar.Value = progressBar.Value +1;
    oh and heres a lot more bout Progressbars.

    http://www.c-sharpcorner.com/1/pbar.asp

    HTH, Stephan
    actually you should do:
    Code:
    progressBar.Value++;
    \m/\m/

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by PT Exorcist
    actually you should do:
    Code:
    progressBar.Value++;
    or progressBar.Value += 1;

    lol.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Or
    ++progressBar.Value

    though that is less an issue in C# than in C++.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    although , PerformStep(); is ideal for the job.
    Code:
    progressBar.Step = 1;
    '/// then in the area where you wish to increase the value of the progressBar...
    progressBar.PerformStep();
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width