473,473 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Waiting Form

Try to implement an waiting form, which has a label and a
textbox, as below:

FormWait fm = new FormWait();
fm.Show();
for (long i = 0; i < 20000000; i++)
{
// some lengthy operations
}
fm.Close();

The texts of the label and the textbox won't display until
the for loop ends. How can I make them display from the
begining?

Thanks

John
Jul 19 '05 #1
1 3154
put a doevents in the loop. This will keep it from appearing to lock up as
well.
"John" <jl****@compucyte.com> wrote in message
news:01****************************@phx.gbl...
Try to implement an waiting form, which has a label and a
textbox, as below:

FormWait fm = new FormWait();
fm.Show();
for (long i = 0; i < 20000000; i++)
{
// some lengthy operations
}
fm.Close();

The texts of the label and the textbox won't display until
the for loop ends. How can I make them display from the
begining?

Thanks

John

Jul 19 '05 #2

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

Similar topics

0
by: nick | last post by:
I have a form which works fine when the post back can be done quickly. Sometime it takes a long time waiting for post back because of slow stored procedures. Then the controls in the form lose...
5
by: Anonieko | last post by:
Scenario: This is a reporting scenario where it takes a while to get back a response ( report page ) after submit. I want my user to see some kind of temporary message like 'Processing...' ...
1
by: ad | last post by:
I have a time-consuming job in button's click event; I wnat to show a "Please waiting.. " message on the form. I put a Label (named labResult ) on the form , and write the codes below, but the...
12
by: Raymond Lewallen | last post by:
How to wait for a process to stop completion is my goal. Obviously, the looping while waiting for the HasExited property is not a solution.. but thats the best I can come up off the top of my...
1
by: John | last post by:
Try to implement an waiting form, which has a label and a textbox, as below: FormWait fm = new FormWait(); fm.Show(); for (long i = 0; i < 20000000; i++) { // some lengthy operations }...
9
by: yxq | last post by:
Hello, Me.Cursor = Cursors.WaitCursor It will make mouse pointer to become waiting status for my form only, how to become waiting status for whole desktop? Thank you
6
by: Hugh Janus | last post by:
Hi group, I am executing a shell command that calls a .BAT file. I have to wait for this batch file to finish so I use the wait = true parameter in the shell command. However, this means that...
2
by: Bob | last post by:
I launch Word from within my application (Vs2005, VB) and I would like to make it necessary for the just opened Word to be closed before the rest of my code in the calling sub can execute. How can...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
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
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...
1
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...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.