473,400 Members | 2,145 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,400 software developers and data experts.

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 3149
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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
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...

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.