Adding a Progressbar (while loading a Form)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lars Netzel

    Adding a Progressbar (while loading a Form)

    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


  • Cor Ligthert

    #2
    Re: Adding a Progressbar (while loading a Form)

    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


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Adding a Progressbar (while loading a Form)

      * "Lars Netzel" <[no_spam_please]lars.netzel@qlo gic.se> scripsit:[color=blue]
      > 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,[/color]

      Where should the progressbar be shown?

      --
      Herfried K. Wagner [MVP]
      <URL:http://dotnet.mvps.org/>

      Comment

      • Lars Netzel

        #4
        Re: Adding a Progressbar (while loading a Form)

        as a separat window on top of everything I guess!

        /Lars

        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> skrev i meddelandet
        news:2g988pF2uo jU2@uni-berlin.de...[color=blue]
        > * "Lars Netzel" <[no_spam_please]lars.netzel@qlo gic.se> scripsit:[color=green]
        > > In my MDI parent form I choose to open a Child thru a MenuClick... I[/color][/color]
        want a[color=blue][color=green]
        > > progressabar to show up and progress allthru the loading of the new[/color][/color]
        Child[color=blue][color=green]
        > > Form.. and then when it's done I want the progressbar to disapear and[/color][/color]
        the[color=blue][color=green]
        > > child so show up.
        > >
        > > Sometimes there's a lot to load in these child windows and I feel I want[/color][/color]
        to[color=blue][color=green]
        > > show the user that something is "going on" and not just have them wait[/color][/color]
        and[color=blue][color=green]
        > > think the application hung,[/color]
        >
        > Where should the progressbar be shown?
        >
        > --
        > Herfried K. Wagner [MVP]
        > <URL:http://dotnet.mvps.org/>[/color]


        Comment

        • Anon

          #5
          Re: Adding a Progressbar (while loading a Form)

          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" <[no_spam_please]lars.netzel@qlo gic.se> wrote in message
          news:ed8QQHpNEH A.3492@TK2MSFTN GP10.phx.gbl...[color=blue]
          > as a separat window on top of everything I guess!
          >
          > /Lars
          >
          > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> skrev i meddelandet
          > news:2g988pF2uo jU2@uni-berlin.de...[color=green]
          > > * "Lars Netzel" <[no_spam_please]lars.netzel@qlo gic.se> scripsit:[color=darkred]
          > > > In my MDI parent form I choose to open a Child thru a MenuClick... I[/color][/color]
          > want a[color=green][color=darkred]
          > > > progressabar to show up and progress allthru the loading of the new[/color][/color]
          > Child[color=green][color=darkred]
          > > > Form.. and then when it's done I want the progressbar to disapear and[/color][/color]
          > the[color=green][color=darkred]
          > > > child so show up.
          > > >
          > > > Sometimes there's a lot to load in these child windows and I feel I[/color][/color][/color]
          want[color=blue]
          > to[color=green][color=darkred]
          > > > show the user that something is "going on" and not just have them[/color][/color][/color]
          wait[color=blue]
          > and[color=green][color=darkred]
          > > > think the application hung,[/color]
          > >
          > > Where should the progressbar be shown?
          > >
          > > --
          > > Herfried K. Wagner [MVP]
          > > <URL:http://dotnet.mvps.org/>[/color]
          >
          >[/color]


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Adding a Progressbar (while loading a Form)

            * "Anon" <anon@anon.co m> scripsit:[color=blue]
            > 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! :)[/color]

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

            --
            Herfried K. Wagner [MVP]
            <URL:http://dotnet.mvps.org/>

            Comment

            • Cor Ligthert

              #7
              Re: Adding a Progressbar (while loading a Form)

              > > Ithink Cor's idea may the appropriate. Create a GIF animation of the
              world[color=blue][color=green]
              > > tunring or whatever, and display it in a nother window, wait 5 seconds[/color][/color]
              or[color=blue][color=green]
              > > how ever long it takes to launch the child window. It would almost[/color][/color]
              belike[color=blue][color=green]
              > > delting files in Windows Explorer. The animation of the files flying! :)[/color]
              >
              > ... there is a progress bar too in Windows Explorer's file copy dialog[/color]
              ;-).[color=blue]
              >[/color]
              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


              Comment

              • Herfried K. Wagner [MVP]

                #8
                Re: Adding a Progressbar (while loading a Form)

                * "Cor Ligthert" <notfirstname@p lanet.nl> scripsit:[color=blue][color=green][color=darkred]
                >>> delting files in Windows Explorer. The animation of the files flying! :)[/color]
                >>
                >> ... there is a progress bar too in Windows Explorer's file copy dialog[/color]
                > ;-).
                >
                > 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?[/color]

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

                --
                Herfried K. Wagner [MVP]
                <URL:http://dotnet.mvps.org/>

                Comment

                • Cor Ligthert

                  #9
                  Re: Adding a Progressbar (while loading a Form)

                  HI Herfried,
                  [color=blue]
                  > * "Cor Ligthert" <notfirstname@p lanet.nl> scripsit:[color=green][color=darkred]
                  > >>> delting files in Windows Explorer. The animation of the files flying![/color][/color][/color]
                  :)[color=blue][color=green][color=darkred]
                  > >>
                  > >> ... there is a progress bar too in Windows Explorer's file copy dialog[/color]
                  > > ;-).
                  > >
                  > > Yes and in a lot of other programs too, they did not make it for[/color][/color]
                  nothing,[color=blue][color=green]
                  > > however what has that to do with the qeustion?[/color]
                  >
                  > Read the OP's question and the other messages...
                  >[/color]
                  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


                  Comment

                  • Herfried K. Wagner [MVP]

                    #10
                    Re: Adding a Progressbar (while loading a Form)

                    * "Cor Ligthert" <notfirstname@p lanet.nl> scripsit:[color=blue][color=green]
                    >> Read the OP's question and the other messages...
                    >>[/color]
                    > 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.
                    >
                    > :-)[/color]

                    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.

                    --
                    Herfried K. Wagner [MVP]
                    <URL:http://dotnet.mvps.org/>

                    Comment

                    • Cor Ligthert

                      #11
                      Re: Adding a Progressbar (while loading a Form)

                      [color=blue]
                      > Mhm... Did you read the subject?
                      >[/color]
                      When you readed the start of my answer (that was the first) you should have
                      known that.

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

                      Cor


                      Comment

                      • Herfried K. Wagner [MVP]

                        #12
                        Re: Adding a Progressbar (while loading a Form)

                        * "Cor Ligthert" <notfirstname@p lanet.nl> scripsit:[color=blue][color=green]
                        >> Mhm... Did you read the subject?[/color]
                        >
                        > When you readed the start of my answer (that was the first) you should have
                        > known that.
                        >
                        > -----
                        > For a progressbar you need the duration of the process. When I read your
                        > message I think you do not have that.
                        > ------[/color]

                        I never said something else...

                        --
                        Herfried K. Wagner [MVP]
                        <URL:http://dotnet.mvps.org/>

                        Comment

                        Working...