473,748 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

StatusStrip ProgressBar

Since some controls such as the DataGridView take a long time to update
themselves when performing certain tasks, I have added a StatusStrip with a
ProgressBar on it. While I am updating the controls on the form, I want the
ProgressBar to scroll in marquee mode. However, I cannot seem to get this to
work.

I set the StatusStripLabe l to the text I want such as "Updating data..." and
then set the ProgressBar's Style property to Marquee mode BEFORE I do any
updates on the controls in the same form. However, the StatusStripLabe l does
not display the text and the ProgressBar does not scroll in marquee mode
while I am performing the updates. This does not seem logical to me and I
have no idea why this occurs. Can anybody please help me?
Mar 1 '07 #1
2 11121
On Mar 1, 11:05 am, Aaron <A...@discussio ns.microsoft.co mwrote:
Since some controls such as the DataGridView take a long time to update
themselves when performing certain tasks, I have added a StatusStrip with a
ProgressBar on it. While I am updating the controls on the form, I want the
ProgressBar to scroll in marquee mode. However, I cannot seem to get this to
work.

I set the StatusStripLabe l to the text I want such as "Updating data..." and
then set the ProgressBar's Style property to Marquee mode BEFORE I do any
updates on the controls in the same form. However, the StatusStripLabe l does
not display the text and the ProgressBar does not scroll in marquee mode
while I am performing the updates. This does not seem logical to me and I
have no idea why this occurs. Can anybody please help me?
You're blocking on the UI thread? If so then that's preventing the UI
updates. Look into using a BackgroundWorke r (I'm assuming you're
using .net 2.0 if you're using a DataGridView).

Mar 1 '07 #2
I tried using the BackgroundWorke r, but I can't reference the DataGridView in
the DoWork method because the DataGridView is on the UI thread. I think the
StatusBar probably needs to be in its own thread so that it's constantly
repainting while I update the DataGridView. But, how do you put a Windows
Control in a different thread when it's on the same form?
>"wf****@gmail. com" wrote:

You're blocking on the UI thread? If so then that's preventing the UI
updates. Look into using a BackgroundWorke r (I'm assuming you're
using .net 2.0 if you're using a DataGridView).

>On Mar 1, 11:05 am, Aaron <A...@discussio ns.microsoft.co mwrote:

Since some controls such as the DataGridView take a long time to update
themselves when performing certain tasks, I have added a StatusStrip with a
ProgressBar on it. While I am updating the controls on the form, I want the
ProgressBar to scroll in marquee mode. However, I cannot seem to get this to
work.

I set the StatusStripLabe l to the text I want such as "Updating data..." and
then set the ProgressBar's Style property to Marquee mode BEFORE I do any
updates on the controls in the same form. However, the StatusStripLabe l does
not display the text and the ProgressBar does not scroll in marquee mode
while I am performing the updates. This does not seem logical to me and I
have no idea why this occurs. Can anybody please help me?
Mar 2 '07 #3

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

Similar topics

0
1381
by: Jim Hubbard | last post by:
When you add a StatusStrip to a WinForm and add a Progressbar to the StatusStrip, setting the Progressbar alignment to "Right" does not move the Progressbar to the right on the Statusbar. Is this a bug?
3
25419
by: windsurfing_stew | last post by:
Hi, Winforms has the new StatusStrip control that replaces StatusBar in 1.1. I've looked high and low but can't seem to find how to get separators (|) in my status bar, eg Info1 | Info2 | Info3 | Info4 where Infos 1 to 4 are StatusLabels.
2
4453
by: robertino | last post by:
Hi all, (VS 2005 Pro, XP) I'm trying to place a statusstrip control on a window such that it acts like a statusstrip (!). Every time I try this, no matter what I do, I find that when I maximise other containers on the form to fill its' available surface, then these other controls slip behind the statusstrip to fill ALL the form's surface as if the statusstrip didn't even exist!. Statustrip dock property is bottom, other controls all...
5
3086
by: Marc | last post by:
Hello, I have a vb.net form that I've added a StatusStrip at the bottom. On that StatusStrip I've added a DropDownButton on which I've added a Menu containing 4 sub Items
2
4521
by: jcvoon | last post by:
Hi: I'm using VS2005, I've create a winform with the following controls: Add a ToolStripContainer Set it to dock to the form (Fill) Click in the top section. Add a menu strip Add a tool strip. Add another tool strip.
1
21031
by: Carla Simeoni | last post by:
I added a StatusStrip "Sstrip1" to a Form "Form1". In the procedure private void Form1_Load(...) I added the following statement: Sstrip1.Text = "Text in my StatusStrip";
3
4482
by: SniperDemon | last post by:
Background: The Program runs a query on a SQL Database, then it takes the gathered information and outputs it into an excel document and saves it to a specified location. Problem: Originally I was using a Label and ProgressBar Located in the form itself but for the sake of appearance I decided it would look better to create a StatusStrip. I relocated the uiFileCreationLabel and uiFileCreationProgressBar to the Status strip as a StatusLabel...
10
5849
by: hzgt9b | last post by:
Using VS2005 (.NET 2.0), VB.NET, I have a windows forms application. I have a StatusStrip containing a ToolStripStatusLabal and a ToolStripProgressBar. I want to force the status label to behave like it's docked to "Fill" inside the StatusStrip and force the progress bar to behave like it's docked to "Right" inside the StatusStrip. Unfortunately I do not see any way to accomplish this using just one StatusStrip control. Does anyone...
1
6510
by: roheetbakshi | last post by:
i want to use statusstrip, Progressbar,timers in my windows application but for some reason i am not being able to use these so i need help , can any one help me by giving the code for how to use these control in windows application
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9561
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
9381
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
9332
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
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
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
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
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
2217
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.