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

Home Posts Topics Members FAQ

progressbar in popup

Sam
Hi,
I have to process a large data loading in my form. In order to give a
feedback on the loading status, I'd like to display a progressbar in a
popup, in the middle of the screen. How can I do that, as the
progressbar is not in the same form as my data structures?

Thx

Nov 21 '05 #1
6 1919
Sam,

There are hundreds ways that data is stored. Than there are probably
hundered ways that data is processes. What answer do you want from us a link
to the progressbar on MSDN?

Cor
Nov 21 '05 #2
Sam
Hi Cor,
That's true, I haven't been very clear.
I'm actually building a tree and I don't know how much time it's gonna
take or even how many items will be added, as the data come from many
different stored procedures. Therefore I'm thinking about showing a
progressbar during the time of the tree construction. Basically I would
show the form that contains the bar before calling my BuildTree
function and I would close it as soon as the function finished. I would
like the bar to actually move from left to right and then from right to
left, kindof a fancy effect.
How can I achieve that?

Nov 21 '05 #3
Sam,

What is the in memory data the stored procedures point to. When it is a
dataset or datatables, how many Fill you have to handle?

If it is a datareader, than you can take two progressbars above each other.

In my idea is the simplest approach counting the stored procedures and take
those as steps. The progressbar documentation on MSDN does that.

If you want a procedure that I will not advice however because it is often
asked and therefore this sample (however you can see in that how to use a
progressbar).

http://www.windowsformsdatagridhelp....6-fc0d5c470f53

I hope this helps,

Cor
Cor
Nov 21 '05 #4
"Sam" <sa************ **@voila.fr> schrieb:
I have to process a large data loading in my form. In order to give a
feedback on the loading status, I'd like to display a progressbar in a
popup, in the middle of the screen. How can I do that, as the
progressbar is not in the same form as my data structures?


Check out the last sample on this page:

Multithreading in Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithread ing&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5
Sam
thanks, that's a cool and useful link!

Nov 21 '05 #6
Sam
May I ask a question regarding the code on the link you gave me? In the
following block of code:

for( int i = 0 ; i < 100 ; ++i )
{
callback.SetTex t( String.Format( "Performing op: {0}", i )
);
callback.StepTo ( i );
if( callback.IsAbor ting )
{
return;
}
// Do a block of work
if( callback.IsAbor ting )
{
return;
}
}

When the author wrote //Do a block of work, I don't understand how you
can do different operations at each loop. Because obviously since I'm
building a tree, at each iteration of the for loop, I would like to
call a different method that handles building a sub-part of my tree.
(it's the way it currentely works). So how can I do that in this loop?

Thx

Nov 21 '05 #7

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

Similar topics

1
332
by: Maka Sili | last post by:
Using ProgressBar.Enabled = false does not dim the progress bar. There must be a way. I hope somebody could guide me. Thanks.
1
2768
by: @ndy | last post by:
Hellow programmers, does anybody has any suggestions for the next problem? I'm looping a recordset and during the loop it allso calculate some things. Now I want display a POPUP FORM with PROGRESSBAR. The maxvalue is the recordsetcount and every loop is value + 1. How can i pass these value to the POPUP form. I've somthing with public tel but it won't work!
2
6309
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 steps can take seconds to process, but others could take upto 10 minutes (leaving the users thinking nothing is happening!). Is there a way to show the progressbar smoothly increasing until the final step has finished instead of clunking it's way...
8
19628
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. pBar1.Minimum = 1; // Set Maximum to the total number of files to copy. pBar1.Maximum = 4; //filenames.Length;
1
5422
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 (form called ProgressForm) and the built the dll. Then I reference this new assembly from within my asp.net applicaiton and tried to access Windows.Forms.ProgressBar from within the ProgressForm but apparently it doesn't work. Because it won't...
3
4792
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 something? I'm shocked that .NET doesn't have a style property for the progressbar control! -- - Mitchell Vincent - kBilling - An easy and affordable billing solution
1
696
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 of the total is already loaded. But I do this in a dirty way: I increment the progressbar with the same number after each table, but not all tables contain the same amount of data. I solved this with starting an other thread to increment the...
2
11121
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 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 StatusStripLabel to the text I want such as "Updating data..." and then set the ProgressBar's Style property to Marquee...
4
2510
by: sivamoorthy | last post by:
how to use a progressbar in a one cpp file but defined in another header file. the function in which i am using is a static member function. how to use the progressbar inside the function code: file name : flash.cpp void CFlasher::OnStartDownload (void *pDublicate) { bValueRet = DeviceIoControl (hHandle, \ (DWORD) IOCTL_SCUSBDFU_DETACH, NULL, \
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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
8252
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.