Results 1 to 4 of 4

Thread: Using the progress bar in vb.net

  1. #1
    Join Date
    Jul 2006
    Posts
    13

    Default Using the progress bar in vb.net

    I need some help getting the progress bar to work in vb.net net i saw some sample code on the net but i must be doing somting wrong cause it's not working.

  2. #2
    Join Date
    Mar 2003
    Posts
    1,700

    Wink HOW TO: Use A ProgressBar

    Easy.

    1. Set the maximum value of the progressbar:

      Code:
          ProgressBar1.Maximum = 100
    2. Set the number of points the progressbar should step by each time an operation is complete:

      Code:
          ProgressBar1.Step = 1
    3. In your loop operation that completes the process, perform a step operation each time the process is complete for each loop:

      Code:
          For x = 0 To n
              'Do operation
              ProgressBar1.PerformStep()
          End For
    4. Reset the progress bar when the loop is complete:

      Code:
          ProgressBar1.Value = 0


    So your whole code should look something like this:

    Code:
        ProgressBar1.Maximum = 100
        ProgressBar1.Step = 1
        For x = 0 To n
            '
            '
            'Insert your statements here...
            '
            '
            ProgressBar1.PerformStep()
        End For
        ProgressBar1.Value = 0
    It's that simple.

  3. #3
    Join Date
    Jun 2005
    Posts
    762

    Default

    whats up Xenocrates i could'nt have put it much better, but i thik i getting extremly rusty on my java have'nt done any in almost 2 years fully .net i think i prob lost my touch you have any good tutorials?? one that helps me to create a simple address book would be nice since that would remind me of the whole jdbc connections and prob will allow me to touch a lil of everything
    Processor: Intel(R) Xeon(R) E5520 @2.27GHz 2.26GHz
    Memory(RAM): 4GB
    HD: 600GB
    RAID: 1

  4. #4
    Join Date
    Mar 2003
    Posts
    1,700

    Default

    Dang... I had such a resource. Not sure where to dig it up now. I was using something like that when I was @ UTECH. In fact, I believe I got a project to build something similar to that in Java. But alas, I know not where to find such a thing right now.

    In fact, your best bet is to use the MSDN library. The articles in the TechNET library are an excellent way to learn the language.

Posting Permissions

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