473,473 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Wait Please Form

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
Nov 21 '05 #1
5 11777
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
Nov 21 '05 #2
"Bonato Pierantonio" <pb*****@interfree.it> schrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
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
Nov 21 '05 #4
"Cor Ligthert" <no************@planet.nl> schrieb:
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...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
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
Nov 21 '05 #6

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

Similar topics

1
by: AP | last post by:
I have a form with a subform. when I navigate through the records using a combo box to jump to a particular record on the main form, "calculating..." appears in the status bar and there is at least...
1
by: VMI | last post by:
How can I add a small "Please wait..." form to a child form so that when I minimize the child form, the "Please Wait..." form will also disappear? This form will be displayed when the child form is...
0
by: Bonato Pierantonio | last post by:
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...
0
by: dorling | last post by:
hi all, basic i got a loop like this below and i need to wait for the form to close before it goes on i would use frm2.ShowDialog() but if i do this my code in the form doesn't work becuase it...
3
by: tylo | last post by:
Hello, I am using "Sub Main" to open many forms, one at a time. The problem is, there's no default built-in way of keeping Sub Main from going onto the next line of code while the user is supposed...
6
by: Derek | last post by:
Hi all any one please help, i have a buttin in flash 8 which gets a form contact.php but when it is pressed the emial ruturns empty as follows 1 the flash button 2 the form 3 the email outcome...
4
by: Luke Bailey | last post by:
I'm trying to complete some changes to a database that I have created and I need to finish it by tomorrow morning! Here's the situation: I have a form where people can order a number of...
5
by: MiguelRivero | last post by:
Hi all, I need ur appreciated help. This code no errors but not working because I don't see the `progressBarLong.gif` (Please Wait), but I see instantly the alert `The server script has now...
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.