Advertisement

04.28.2008 at 12:15AM PDT, ID: 23357965
[x]
Attachment Details

ProgressBar Status Update

Asked by Paulchen29 in Microsoft Visual C#.Net, .NET, .Net Class Libraries

Tags: C#, IE 6.0

Hey there!

I have a problem and I think the Question Title is a bit misleading (sorry for that but I couldn't find a better title). But let me try to explain my problem best I can:

I have a class with one public function. The rest of the functions are all private. The main logic is all implemented in this public function. Let me just give u a small example in the attached code.

The problem is now that I want to use this class in a windows application and in that window form I want to use a progress bar.
I've implemented a timer on the form window which starts before I call the function and stops after the function call.
After each tick event I execute a PerformStep of the ProgressBar.

For my needs it works fine if the count of elements in my Array (array.count) is not too big. If it is bigger the function1 needs to much "CPU Power" and the timer event is not updated (this is what I guess)!

I hope you can understand my problem and would be glad if someone can help me.

Best Regards
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
public void function1() 
{
   do
     {
 
      if (......)
          function2();
      if (......)
          function3();
 
     }while(i < array.count)
}
[+][-]04.28.2008 at 01:05AM PDT, ID: 21452229

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 05:56AM PDT, ID: 21453452

View this solution now by starting your 7-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: Microsoft Visual C#.Net, .NET, .Net Class Libraries
Tags: C#, IE 6.0
Sign Up Now!
Solution Provided By: Hendo1973
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.28.2008 at 06:52AM PDT, ID: 21453960

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 06:59AM PDT, ID: 21454024

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628