Wait Please Form

  • Thread starter Thread starter Bonato Pierantonio
  • Start date Start date
B

Bonato Pierantonio

Hi all,
I need a suggestion.... I need to build an application in VB.NET where I
want to place a "WAIT PLEASE" form during the long process of the
application that disappera automatically when the Process is finished.

Some suggestion?
Thanks
 
Bonato,

This is very standard roughly typed her
\\\
dim frm as new formAttention
frm.controlbox = false
frm.owner = me 'to get it nice on the original form
frm.show
do my proces
frm.close
///

I hope this helps?

Cor
 
Bonato Pierantonio said:
I need a suggestion.... I need to build an application in VB.NET where I
want to place a "WAIT PLEASE" form during the long process of the
application that disappera automatically when the Process is finished.

You can perform the operation in a separate thread. The page referenced
below contains a link to a sample written in C# that will give you an idea
how to display a progress dialog for a running operation:

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

And what is the benefit of showing that on a separate thread.

Told is that the form shows only "Wait Please" and therefore actually does
nothing than be on the screen.Every process (painting by moving) is done by
windows itself.

Therefore I am curious for what you "multithreading" advice is in this a
solution?

Cor
 
Cor Ligthert said:
Told is that the form shows only "Wait Please" and therefore actually does
nothing than be on the screen.Every process (painting by moving) is done
by windows itself.

Therefore I am curious for what you "multithreading" advice is in this a
solution?

For example, when the operation is a call to a blocking method, the
application will stop responding to user interaction, which will cause a bad
user experience. I always hated those non-cancellable "Please wait..."
dialogs without any information on what's going on.

Just my 2 Euro cents...
 
Herfried,
For example, when the operation is a call to a blocking method, the
application will stop responding to user interaction, which will cause a
bad user experience. I always hated those non-cancellable "Please
wait..." dialogs without any information on what's going on.

Just my 2 Euro cents...
Sometimes it is better not to show something extra that needs processing.

Yesterday I was curious if I could make a progressbar while loading a
dataset using the fill. And I succeeded. However because of the needed
actions I will never use it because it slows the reading dramaticly down
with a complete databasetable.

And as you know, does showing a Gif not extra processing or block the the
thread as either, it is only extra windowspainting.

In addition, as you probably know do I have samples for those splash screens
using multithreading.

Just my 2 cents from the same currency.

(They are banned here in many shops in Holland how is it in Austria, maybe I
can sent some cents)

(It sounded so nice, the stamp would cost more than the cent).

:-)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top