Advertisement

08.13.2008 at 02:44AM PDT, ID: 23644027
[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!

8.1

VS 2005 Thread-Crossing ProgressBar Update Problem

Asked by jumbo_fr in .NET, Microsoft Visual Basic.Net

Hello!
I'm working on a WIndows Application project ( VB .Net in VS 2005) and I'm having an un solved problem with updating a progressBar on a Win Form from different Thread...
More exactly, In the Main Win Form of my project I launch a Thread which opens another Win Form. In this new window I select a series of parameters and then I press the OK button which calls different functions that read data from multiple TXT files located on a server. This new window also contains a ProgressBar that is supposed to show to progression of each txt file read....
Now,  the functions  I call for reading the data are situated in the Main Win Form code (from where I launch the new Thread...)...
So, to resume, from the main project class I launch a thread which creates a new win form containing a progressbar and which calls functions located in the main class...
The problem is that I want to modify the progressbar directly from the functions I use to read the txt files (while reading them) but it doesn't work...:((
I tried puting delegates in the new win form code and then call them from within the functions but It doesn't work ...
Can you please give me some ideas for my problem?  
I read a few articles about the BackgroundWorker of VS 2005...Do you thinkusing backgroundworker could solve my problem?

A second issue I have is related to the debugging of the process mentioned before...In fact, while debugging, if I put a breakpoint and I stop the code for a few seconds, my thread ends unexpectedly and my new win form closes completely, without warnings...Do you know what causes these ?

Thank you in advance for your help
Best Regards

 Start Free Trial
[+][-]08.13.2008 at 03:23AM PDT, ID: 22220435

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.

 
[+][-]08.13.2008 at 06:22AM PDT, ID: 22221431

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.

 
[+][-]08.13.2008 at 07:37AM PDT, ID: 22222106

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: .NET, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: Busac
Participating Experts: 2
Solution Grade: B
 
 
[+][-]08.13.2008 at 08:06AM PDT, ID: 22222394

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.

 
[+][-]08.14.2008 at 05:39AM PDT, ID: 22229639

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.

 
[+][-]08.14.2008 at 07:26AM PDT, ID: 22230590

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