[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/21/2009 at 02:40PM PDT, ID: 24672759
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.5

VB.NET 2 Progress Bars on one form

Asked by Maelificus in VB Controls, VB Objects, Visual Studio

Tags: progress bars, VB.NET, Forms

I am trying to get two progress bars to work. I have a subroutine that calls the other form upon clicking a button that will go through and add items to a database. we wwant to implement 1 progress bar for "over-all progress" and another for each item that is added to the database.
currently I can see the latter bar moving as it should, but everything else (percentage labels, and the other bar) act as if they are frozen. the only thing that really updates is the second progressbar. I will try to put in relevent code below, I cannot add everything though.
Thanks for any help!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
' Setup the overall progress bar
        progress.ProgressBar1.Minimum = 0
        progress.ProgressBar1.Maximum = lastRow
        progress.ProgressBar1.Value = 0
        Dim progressValueOverall As Double
        progressValueOverall = lastRow / 100
        Dim progressValueSheet As Double
 
'''''''''''''''other code happens here (database entry loops)
'''''''''''''' there are two loops, one for the first DB and one for the second, the first one will 
'''''''''''''' loop once and then progress into the second DB and loop through that one until a it's 
'''''''''''''' last row is met, then it will go back up to the first and repeat until both databases 
'''''''''''''' reach their last row
 
' initialize the sheet progress bar
          progress.ProgressBar2.Minimum = 0
          progress.ProgressBar2.Maximum = lastRow
          progress.ProgressBar2.Value = 0
          progressValueSheet = lastRow / 100
'show the progress form
  progress.Show()
 
'''''''''' here the rest of the second database entry takes place until the end of the loop for 
'''''''''' the second DB
 
progress.ProgressBar2.Value = progress.ProgressBar2.Value + progressValueSheet
 
'''''''' loop for second DB ends here
 
    progress.ProgressBar1.Value = progress.ProgressBar1.Value + progressValueOverall
    progress.lblOverallProgressInfo.Text = progress.ProgressBar2.Value / 81 * 100
''' this labal above doesnt even update.
 
that is pretty much it, only the progressbar2 works, the progressbar1 and al lables on the form are frozen. I tried enabling double buffering through the form properties.
any help is greatly appreciated, as always, if you have questions, please ask!
Thanks again!
-Jason
[+][-]08/21/09 03:41 PM, ID: 25156501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/21/09 06:15 PM, ID: 25157042

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/22/09 07:13 AM, ID: 25158747

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Controls, VB Objects, Visual Studio
Tags: progress bars, VB.NET, Forms
Sign Up Now!
Solution Provided By: kaufmed
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08/22/09 07:22 AM, ID: 25158774

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/23/09 08:23 AM, ID: 25162944

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/09 06:59 AM, ID: 25168361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/09 08:57 AM, ID: 25169613

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625