Some help needed..

earthdance

Newcomer
Joined
Apr 1, 2006
Messages
4
Hello, I hope someone can help me figure this out. I have coded an application that will send a mail message to a list of about 250 e-mail addresses. The program connects to a database in order to retrieve this list, then adds them to an Array and then goes through this erray to send the mail message to each address. This process works fine, but I wanted to have my program display in a label a message that shows the user what is the program doing at a certain point. For example:
"Connecting to database..."
"Retrieving list of addresses..."
"Sending message to: address@email.com"
etc..

The problem is that as soon as I click on the Submit button the program freezes all through the process and I am only able to see the last message when all the process is finished.

Is there something that I am missing so that the program will actually preserve its flow and display all messages while going through the entire process?

Any help will be appreciated.
 
It basically passes CPU control around all the threads to let them do what they need to do.
 
Back
Top