Adding a Progressbar (while loading a Form)

L

Lars Netzel

In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it's done I want the progressbar to disapear and the
child so show up.

Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,

/Lars
 
C

Cor Ligthert

Hi Lars,

For a progressbar you need the duration of the process. When I read your
message I think you do not have that.

A simple red sign (which turn to green when ready) in the statusbar from the
program will probably have the same effect because users know those things
from IE.

However you can also just create a from in your load event as
dim frm as new form
Add to that frm some things and than
frm.show
and close that at the end of the load event with
frm.close

I hope this gives some idea's?

Cor
 
H

Herfried K. Wagner [MVP]

* "Lars Netzel said:
In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it's done I want the progressbar to disapear and the
child so show up.

Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,

Where should the progressbar be shown?
 
A

Anon

Ithink Cor's idea may the appropriate. Create a GIF animation of the world
tunring or whatever, and display it in a nother window, wait 5 seconds or
how ever long it takes to launch the child window. It would almost belike
delting files in Windows Explorer. The animation of the files flying! :)

Luis

Lars Netzel said:
as a separat window on top of everything I guess!

/Lars

want
wait
 
H

Herfried K. Wagner [MVP]

* "Anon said:
Ithink Cor's idea may the appropriate. Create a GIF animation of the world
tunring or whatever, and display it in a nother window, wait 5 seconds or
how ever long it takes to launch the child window. It would almost belike
delting files in Windows Explorer. The animation of the files flying! :)

.... there is a progress bar too in Windows Explorer's file copy dialog ;-).
 
C

Cor Ligthert

Ithink Cor's idea may the appropriate. Create a GIF animation of the
world
... there is a progress bar too in Windows Explorer's file copy dialog ;-).
Yes and in a lot of other programs too, they did not make it for nothing,
however what has that to do with the qeustion?

Cor
 
H

Herfried K. Wagner [MVP]

* "Cor Ligthert said:
;-).

Yes and in a lot of other programs too, they did not make it for nothing,
however what has that to do with the qeustion?

Read the OP's question and the other messages...
 
C

Cor Ligthert

HI Herfried,
Read the OP's question and the other messages...
Yes I did, did you also, I see nothing about window explorer?
------------------
Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,
--------------------
Just tickling you know.

:)

Cor
 
H

Herfried K. Wagner [MVP]

* "Cor Ligthert said:
Yes I did, did you also, I see nothing about window explorer?

Mhm... Did you read the subject?

;-)

BTW: I think it depends on which action is performed when loading the MDI child. If
it's easy to implement a progress bar, I would do it (for example, in
the MDI container's status bar), if it's not as easy, I would use a
marquee progressbar...

Just my 2 Euro cents.
 

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

Top