473,410 Members | 1,953 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,410 software developers and data experts.

ProgressBar help needed

Ok...here's another problem that VB.NET probably does not support but
hopefully there may be a workaround. I have a form with a "continue
processing" button. When the button is pressed it creates a new instance of
a class called "RC". This RC class does not have a form, it just does a few
things. Once RC is finished it loads the next form in the project. When RC
runs, it takes a while to complete, a time that nothing happens on the
screen. I would like to put a progress bar on the first form and have it
work while the RC class executes. I have not been able to figure a way to do
this. Any ideas? Thanks in advance!

Dave Harris
Nov 20 '05 #1
3 1428
* "Dave Harris" <dh******@woh.rr.com> scripsit:
things. Once RC is finished it loads the next form in the project. When RC
runs, it takes a while to complete, a time that nothing happens on the
screen. I would like to put a progress bar on the first form and have it
work while the RC class executes. I have not been able to figure a way to do
this. Any ideas?


Maybe a Windows XP Marquee ProgressBar?

<http://groups.google.de/groups?selm=uX12SU7VDHA.1784%40TK2MSFTNGP10.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Cor
Hi Dave,

A progresbar need that you know what is the lenght of a process, sometimes a
rolling counter made with the timer is enough or something else to show that
the program is running. (Not a gif because then if your program hangs the
user does not see it)

Just my thought,

Cor
Ok...here's another problem that VB.NET probably does not support but
hopefully there may be a workaround. I have a form with a "continue
processing" button. When the button is pressed it creates a new instance of a class called "RC". This RC class does not have a form, it just does a few things. Once RC is finished it loads the next form in the project. When RC
runs, it takes a while to complete, a time that nothing happens on the
screen. I would like to put a progress bar on the first form and have it
work while the RC class executes. I have not been able to figure a way to do this. Any ideas? Thanks in advance!

Nov 20 '05 #3
Hi Dave,

The basic problem with progress bars is that you have to have a mechanism to
increment it. For example, if you are loading a table, there is a way to
know the full size of the table and to increment the pbar for each row group
loaded - say, increment once for each 326 rows since I know that there are
9780 rows in all, thus increment 30 times.

Do you have a means of doing this inside RC? If you do, I can probably help
you.

HTH,

Bernie

"Dave Harris" <dh******@woh.rr.com> wrote in message
news:Zi********************@fe3.columbus.rr.com...
Ok...here's another problem that VB.NET probably does not support but
hopefully there may be a workaround. I have a form with a "continue
processing" button. When the button is pressed it creates a new instance of a class called "RC". This RC class does not have a form, it just does a few things. Once RC is finished it loads the next form in the project. When RC
runs, it takes a while to complete, a time that nothing happens on the
screen. I would like to put a progress bar on the first form and have it
work while the RC class executes. I have not been able to figure a way to do this. Any ideas? Thanks in advance!

Dave Harris

Nov 20 '05 #4

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

Similar topics

1
by: | last post by:
Hi all I am posting this to check if anyone could help me. The problem still persists. I am beginner in C#. Thanks. Subject: SQLDMO.Backup and ProgressBar - help please From: ...
2
by: jez123456 | last post by:
Hi, thanks for the previous advice on progressbars with showing the percentage. I would now like to create a less clunky version. I.e at the moment my progressbar shows 7 separate steps. Some...
8
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
1
by: Mehr H | last post by:
I've been trying to figure out how i can embed a Windows.Forms.ProgressBar in my webform (aspx) file. I have tried putting a Windows.Forms.ProgressBar as public on a regular winform designer form...
2
by: Bill Nguyen | last post by:
How can I create a shared function to display process progress that can be called from other routines within an application? Any example that I can follow? Thanks Bill
3
by: Mitchell Vincent | last post by:
In other programming languages I've been able to easily change the style of a progress bar between smooth and blocked. I find that is either really hidden or impossible in .NET. Am I missing...
1
by: nobody | last post by:
Hi I'm currently developing a Windows application. At the start of the application I load several tables into datatables in a dataset. I also use a progressbar to show the user how much percent...
2
by: =?Utf-8?B?QWFyb24=?= | last post by:
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...
4
by: Thomas | last post by:
Hello, I don't know if such question was already posted but I didn't find anything through different posts. I have the Main MDI window with a StatusBar. Inside my StatusBar there is a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.