473,729 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4255
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***@construc tion-imaging.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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
2903
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 timer at the beginning of the function with Timer1.Start();
14
1974
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 end-user a progress bar, or something. Anyone have any ideals or can point me to a sample? Thanks,
3
2863
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 that might take 5-8 seconds. I tried to putting the gif in a sepearate page and referencing it using iframe thinking that if the gif is on another page & calling it from my main page, it would not be affected by my submittals and continue to...
0
1531
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 halfway and never gets any further. Is there any way to monitor activity on the web server that would give some indication as to what process is still ongoing that makes the browser (IE6) display the progress bar? The page uses a hidden IFRAME to...
3
3792
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 form, it stops updating it, but keeps on incrementing the Progress bar values in the background and displays the updated Pbar after finishing the operation G1. My requirement is that it should update during the execution of operation G1. On...
5
10906
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 have a form that has a button. ( this form is a child form of a parent form ( main form ). Anway...in this child form I have a button, and if clicked a bunch of code will get executed. I would like to show a Progress Bar / form in modal/ShowDialog...
3
2274
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 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320731 but the workaround prescribed in the KB isn't particularly helpful. The project I'm working on serves up a custom jpg image on the client side at runtime (think MapQuest or Google Maps). We use a COTS product here to handle...
3
3462
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 text files. These files are FTP'd from a legacy system (a mainframe running MVS). Sometimes, the process steps on iteslf, whereby the bulk insert is attempted on a file whose FTP is still in progress; it's not fully written to disk on the SQL box...
0
912
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 pulling form. Well, because I'm pulling remotely and it takes a min to load I want to display a progress bar to show the end user that something is happening. How do I do that?
0
9426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9281
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6722
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.