Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Custom Busy Window.

Custom Busy Window.

Scheduled Pinned Locked Moved C#
tutorialquestion
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The_Collector
    wrote on last edited by
    #1

    Gud day everyone.. There are only two common suggestions in the internet on how to inform the users when program is busy : 1. backgroundworker 2.threading... i want to make my own modal window with animated GIF in it. said window will display during processing and it will stop after the process. how will i do it? can anyone give me a sample.... thanks in advance.

    xxx

    L T K 3 Replies Last reply
    0
    • T The_Collector

      Gud day everyone.. There are only two common suggestions in the internet on how to inform the users when program is busy : 1. backgroundworker 2.threading... i want to make my own modal window with animated GIF in it. said window will display during processing and it will stop after the process. how will i do it? can anyone give me a sample.... thanks in advance.

      xxx

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I think you should make a new control for that. Put timer in it for the animation. Then make 2 methods in it Start and Stop.

      1 Reply Last reply
      0
      • T The_Collector

        Gud day everyone.. There are only two common suggestions in the internet on how to inform the users when program is busy : 1. backgroundworker 2.threading... i want to make my own modal window with animated GIF in it. said window will display during processing and it will stop after the process. how will i do it? can anyone give me a sample.... thanks in advance.

        xxx

        T Offline
        T Offline
        The Man from U N C L E
        wrote on last edited by
        #3

        I have done something similar, which was a borderless progress form with an animated gif, and a background worker on it. You just hook up to the DoWork and RunWorkerCompleted events as normal. Having said that, although it worked fine in a small scale application, for a larger app I ended up writing my own threading code. Ideally the window should be modeless. But then you have to intercept all mouse and keyboard messages to ensure the end user cannot click elsewhere.

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

        T 1 Reply Last reply
        0
        • T The Man from U N C L E

          I have done something similar, which was a borderless progress form with an animated gif, and a background worker on it. You just hook up to the DoWork and RunWorkerCompleted events as normal. Having said that, although it worked fine in a small scale application, for a larger app I ended up writing my own threading code. Ideally the window should be modeless. But then you have to intercept all mouse and keyboard messages to ensure the end user cannot click elsewhere.

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

          T Offline
          T Offline
          The_Collector
          wrote on last edited by
          #4

          The window should be modal to prevent the user from making any action while it is processing... I tried to making a separate window with animated GIf and called it under another thread but it still doesnt work.. can you give me a sample how will i do it.. thanks in advance..

          xxx

          T 3 Replies Last reply
          0
          • T The_Collector

            The window should be modal to prevent the user from making any action while it is processing... I tried to making a separate window with animated GIf and called it under another thread but it still doesnt work.. can you give me a sample how will i do it.. thanks in advance..

            xxx

            T Offline
            T Offline
            The Man from U N C L E
            wrote on last edited by
            #5

            Could be a largish code chunk. I'll see if I can slim it down. The key though is that the window is launched on the main GUI thread, but performs it's work on a secondary thread.

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

            1 Reply Last reply
            0
            • T The_Collector

              The window should be modal to prevent the user from making any action while it is processing... I tried to making a separate window with animated GIf and called it under another thread but it still doesnt work.. can you give me a sample how will i do it.. thanks in advance..

              xxx

              T Offline
              T Offline
              The Man from U N C L E
              wrote on last edited by
              #6

              Email on it's way to you. It was far to big to post here. Maybe one day I will write it up as an article.

              If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

              1 Reply Last reply
              0
              • T The_Collector

                Gud day everyone.. There are only two common suggestions in the internet on how to inform the users when program is busy : 1. backgroundworker 2.threading... i want to make my own modal window with animated GIF in it. said window will display during processing and it will stop after the process. how will i do it? can anyone give me a sample.... thanks in advance.

                xxx

                K Offline
                K Offline
                Kevin Marois
                wrote on last edited by
                #7

                See this... A simple wait window[^]

                Everything makes sense in someone's mind

                T 1 Reply Last reply
                0
                • T The_Collector

                  The window should be modal to prevent the user from making any action while it is processing... I tried to making a separate window with animated GIf and called it under another thread but it still doesnt work.. can you give me a sample how will i do it.. thanks in advance..

                  xxx

                  T Offline
                  T Offline
                  The Man from U N C L E
                  wrote on last edited by
                  #8

                  Got a much better Wait Window available now. Posting the code to you made me think about what I had and I have vastly improved on the code now. I have posted it as an Article A simple wait window[^].

                  If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                  T 1 Reply Last reply
                  0
                  • T The Man from U N C L E

                    Got a much better Wait Window available now. Posting the code to you made me think about what I had and I have vastly improved on the code now. I have posted it as an Article A simple wait window[^].

                    If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                    T Offline
                    T Offline
                    The_Collector
                    wrote on last edited by
                    #9

                    You posted a lot,,, it really helps and I want to thank you for this effort... thank you again

                    xxx

                    T 1 Reply Last reply
                    0
                    • K Kevin Marois

                      See this... A simple wait window[^]

                      Everything makes sense in someone's mind

                      T Offline
                      T Offline
                      The_Collector
                      wrote on last edited by
                      #10

                      Thank you very much for the link,,, i havent tried it yet but i really appreciate the efforts you mad... thank you again.

                      xxx

                      1 Reply Last reply
                      0
                      • T The_Collector

                        You posted a lot,,, it really helps and I want to thank you for this effort... thank you again

                        xxx

                        T Offline
                        T Offline
                        The Man from U N C L E
                        wrote on last edited by
                        #11

                        Your welcome. It helped me to clean up my code as well.

                        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups