473,419 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Progress Bar stops working?

I am using VB.NET 2005, but I have seen this problem in 2003 also. I
have a windows form based application. When the user clicks on the main
command button it goes off and does its thing. It updates a progress
bar as data is processed and is also incrementing counters that are
boing displayed in two textboxes. If I click on another window at this
time and my application loses focus, the progress bar and textbox
updating stops even though the application is still running. Even
clicking back in its window to give it focus back does not cause the
progress bar and textbox updating to resume. Anyone know why this is
happening and a possible way to stop it from happening? I've seen many
apps in my day that had a progress bar that kept working even if the
window lost focus.

Nov 23 '05 #1
1 4235
Most likely cause is because the main app thread is busy with the operation
and it does not get a chance to process messages to repaint itself and do
other stuff that is necessary to be done when an app gets focus. Doing the
operation on a background thread is a possible solution

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------
<za***@construction-imaging.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am using VB.NET 2005, but I have seen this problem in 2003 also. I
have a windows form based application. When the user clicks on the main
command button it goes off and does its thing. It updates a progress
bar as data is processed and is also incrementing counters that are
boing displayed in two textboxes. If I click on another window at this
time and my application loses focus, the progress bar and textbox
updating stops even though the application is still running. Even
clicking back in its window to give it focus back does not cause the
progress bar and textbox updating to resume. Anyone know why this is
happening and a possible way to stop it from happening? I've seen many
apps in my day that had a progress bar that kept working even if the
window lost focus.

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven Blair | last post by:
Hi, Having a bit of a problem with the Progress Bar and Timer component. Basically, when I execute a menu option, I need the progress bar to start working. I have managed this and start the...
14
by: Todd Denlinger | last post by:
Ok, I know how to upload a file in asp.net using the <input type="file" runat="server"> control. What I don't know how to do is monitor the progress of the upload so that I can show the...
3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
0
by: Timo | last post by:
My (intranet) aspx page finishes loading but the progress bar continues to advance very very very slowly, i.e. a new chunk on the bar is added 10 seconds or so, and then progress bar stops about...
3
by: Vinay | last post by:
Hello I am trying to update a Progress bar on a form. I am able to update it via using a simple clock timer, but as soon as I perform a long operation G1 (generation of a report) in a separate...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
3
by: Adam Sandler | last post by:
Hello, I'm able to reproduce my problem but I haven't been able to figure out why it is happening. MS does have an article about such behavior in...
3
by: Tim Satterwhite | last post by:
Hi All, I think this is a thorny problem, and I'm hoping you can help. I've not found this exact issue described anywhere yet. I have a stored procedure that calls BULK INSERT on a set of...
0
by: Dmenace | last post by:
Okay, I've got a small program that I'm making in VB.net and I've got a problem. I'm in a basic form with tabs and buttons (form2) Now I click a button to go into (form5) which is a SQL data...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.